On Sunday 20 April 2003 09.11, Schelstraete Bart wrote:
> Can I configure Squid so that he uses cache_peer1 as the default
> parent, and cache_peer2 if the cache_peer1 goes down?
>
> I would think that something like this should give those results,
> but I don't know if this is correct:
>
> cache_peer cache_peer1 parent 8080 0 default
> cache_peer cache_peer2 parent 8080 0 default
As you are not using ICP you also need to specify the no-query option.
Other than this it should work fine, but you might want to specify a
low peer connect timeout to speed up the failover process.
To make things more obvious you might want to use default only on the
actual default parent. This also have the benefit that access.log
will more clearly indicate failover conditions.
cache_peer cache_peer1 parent 8080 0 default no-query
cache_peer cache_peer2 parent 8080 0 default no-query
peer_connect_timeout 2 seconds
Regards
Henrik
-- Donations welcome if you consider my Free Squid support helpful. https://www.paypal.com/xclick/business=hno%40squid-cache.org If you need commercial Squid support or cost effective Squid or firewall appliances please refer to MARA Systems AB, Sweden http://www.marasystems.com/, info@marasystems.comReceived on Sun Apr 20 2003 - 04:57:20 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:15:03 MST