[squid-users] dead gateway, not dead peer..

Amos Jeffries squid3 at treenet.co.nz
Wed Jun 22 04:46:33 UTC 2016


On 22/06/2016 7:12 a.m., B. Cook wrote:
> On Tue, Jun 21, 2016 at 3:18 AM, Amos Jeffries <squid3 at treenet.co.nz> wrote:
> 
>>
>> So you're trolling. The FAQ it is then:
>>  <http://wiki.squid-cache.org/Features/CacheHierarchy>
>>  <http://wiki.squid-cache.org/Features/LoadBalance>
>>
>>
> ​Thank you the response..
> 
> squid.conf (3.5.19 debian host 192.168.10.115)
> cache_peer 10.20.12.144 parent 3128 0 no-digest no-netdb-exchange
> proxy-only
> cache_peer 10.20.12.194 parent 3128 0 no-digest no-netdb-exchange
> proxy-only
> cache_peer 10.20.32.99 parent 3128 0 no-digest no-netdb-exchange proxy-only
> default
> prefer_direct off
> nonhierarchical_direct off
> 
> Turing off squid on host 10.20.12.144 immediately got 10.115 to pass
> connections over to 12.194 (great) as denoted in the logs below..
> 
> ​2016/06/21 15:02:16 kid1| TCP connection to 10.20.12.144/3128 failed
> 2016/06/21 15:02:16 kid1| TCP connection to 10.20.12.144/3128 failed
> 2016/06/21 15:02:24 kid1| TCP connection to 10.20.12.144/3128 failed
> 2016/06/21 15:02:24 kid1| TCP connection to 10.20.12.144/3128 failed
> 2016/06/21 15:02:24 kid1| TCP connection to 10.20.12.144/3128 failed
> 2016/06/21 15:02:24 kid1| TCP connection to 10.20.12.144/3128 failed
> 2016/06/21 15:02:24 kid1| TCP connection to 10.20.12.144/3128 failed
> 2016/06/21 15:02:24 kid1| TCP connection to 10.20.12.144/3128 failed
> 2016/06/21 15:02:24 kid1| TCP connection to 10.20.12.144/3128 failed
> 2016/06/21 15:02:24 kid1| TCP connection to 10.20.12.144/3128 failed
> 2016/06/21 15:02:24 kid1| Detected DEAD Parent: 10.20.12.144
> 2016/06/21 15:02:32 kid1| Detected REVIVED Parent: 10.20.12.144​
> 
> When I enabled squid on host 10.20.12.144 squid detected dead -> revived
> and passed traffic again.. (also great)..
> 
> but when host 10.20.12.144 loses it's gateway, the default route on 12.144
> is dead.. traffic is still to 12.144.. squid didn't die, the process is
> still running..
> 
> Nothing is detected and 12.194 is never contacted..
> 
> How do I get squid to detect that no valid data is being returned from
> 12.144.. or am I missing something?

You have a router misconfiguration somewhere. Probably ICMP is not
working on your network. Which is causing connnections to hang for long
periods instead of failing over to the other peer.

Attempts by Squid to contact 12.144 when there is no way to route
traffic to it should be getting an ICMP "no route to host" error back.

Amos



More information about the squid-users mailing list