RE: [squid-users] cache_peer, time based

From: Marcel Grandemange <thavinci_at_thavinci.za.net>
Date: Tue, 25 Nov 2008 14:35:20 +0200

>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

Thank You, this worked 100% first time!

>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?

      

>__________ NOD32 3635 (20081124) Information __________

>This message was checked by NOD32 antivirus system.
>http://www.eset.com
Received on Tue Nov 25 2008 - 12:35:41 MST

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