Re: [squid-users] cache_peer, time based

From: John Doe <jdmls_at_yahoo.com>
Date: Mon, 24 Nov 2008 03:07:27 -0800 (PST)

Maybe something like the following would work?

acl daytime 08:00-23:59
acl nighttime 00:00-07:59

cache_peer_access mydaycache.net allow daytime
cache_peer_access mydaycache.net deny all
cache_peer_access mynightcache.net allow nighttime
cache_peer_access mynightcache.net deny all

JD

----- Original Message ----
> From: Marcel Grandemange <thavinci_at_thavinci.za.net>
> To: squid-users_at_squid-cache.org
> Sent: Sunday, November 23, 2008 1:46:33 AM
> Subject: [squid-users] cache_peer, time based
>
> Hey does anybody know how I would do something like the following...
>
> I have a squid server that under normal circumstances will always fetch
> objects directly.
>
> However from 12:00 at night to 8:00am , the line is saturated from p2p use.
> Now the same time we have another cache on a different line for different
> purposes that will be entirely free during non working hours.
>
> What I would like to do is use the cache_peer directive for this cache but
> it must ONLY be used between 12:00 and 8:00 , the rest of the time it must
> go directly.
>
>
> Possible? Scripts?
>
>
> Any advice?

      
Received on Mon Nov 24 2008 - 11:07:37 MST

This archive was generated by hypermail 2.2.0 : Tue Nov 25 2008 - 12:00:03 MST