[squid-users] parent peer timeout

Ignacio Freyre nachofw at adinet.com.uy
Tue Nov 21 01:09:49 UTC 2017


Hi guys, i have a simple configuration that i'm testing with 2 parent proxys for a specific domain, if parent proxy 192.168.1.1 fails, failover to 192.168.1.2 proxy.
I have a couple of questions:
1)Having configured "connect-timeout=3" and "connect-fail-limit=2", failover takes about 2 minutes, how can I reduce failover time?
2)If I enable cache_peer_access statements, failover never happens because the peers dont get detected as dead

#CONFIGURATION START
#hostname
visible_hostname testing

#parent proxy's
cache_peer 192.168.1.1 parent 3128 0 no-query no-digest connect-timeout=3 connect-fail-limit=2
cache_peer 192.168.1.2 parent 3128 0 no-query no-digest connect-timeout=3 connect-fail-limit=2

#send traffic to peers
acl foo_url url_regex site\.domain\.com
never_direct allow foo_url

#peer access
cache_peer_access 192.168.1.1 deny !foo_url
cache_peer_access 192.168.1.2 deny !foo_url

#allow all for testing purposes
http_access allow all

# Squid normally listens to port 3128
http_port 3128

# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320
#CONFIGURATION END

LOGS that I see when peer is detected as dead
2017/11/20 22:55:02| Ready to serve requests.
2017/11/20 22:55:03| storeLateRelease: released 0 objects
2017/11/20 22:56:55| TCP connection to 192.168.1.1/3128 failed
2017/11/20 22:56:55| TCP connection to 192.168.1.1/3128 failed
2017/11/20 22:56:55| Detected DEAD Parent: 192.168.1.1



More information about the squid-users mailing list