Search squid archive

Re: Failover using Cache Peer feature.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/7/22 17:28, Marcelo wrote:

Is there a way to use Cache Peer feature to send traffic to Squid number 2 if Squid number 1 does not respond in N seconds?

The correct answer probably depends on your definition of "respond" but see if the cache_peer connect-timeout option[1] is what you are looking for. That option defines "respond" as "establish a TCP connection with that peer known IP address". You probably want to mark those peers as parents and use the "first-up" peer selection algorithm[2] (which is the default).

[1] http://www.squid-cache.org/Doc/config/cache_peer/
[2] https://wiki.squid-cache.org/Features/LoadBalance#First-Up_Parent


HTH,

Alex.
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux