I am using squid 2.6 STABLE-6 with RedHat Linux Enterprise 5.x
My ISP has 5 proxy servers.
But sometimes they down often
If the first proxy is down, I want squid to switch to second proxy etc ....
I have configure squid as below
============== squid.conf ========================
cache_peer 202.1.1.4 parent 8080 3130 no-query no-digest
cache_peer 202.1.1.5 parent 8080 3130 no-query no-digest
cache_peer 202.1.1.6 parent 8080 3130 no-query no-digest
cache_peer 202.1.1.7 parent 8080 3130 no-query no-digest
peer_connect_timeout 3 seconds
================= end of squid.conf ================
If first proxy down, it really try to detect next proxy server.
BUT IT TRY FOR ABOUT TEN TIMES. Please see cache.log for details
BUT I WANT TO TRY ABOUT 4 TIMES as maximum
HOW CAN I DO THAT.
Because of I have setup cache_peer_timeout=3 seconds, it takes
30-seconds to try for a proxy.
If first 4 proxy down and the last server is active, it takes 2-minutes.
But my Internet Cafe users cannot wait up to 2-3 minutes and they go out.
Note: If i set peer_connect_timeout less than 3 seconds, it does not work well
Any Suggestion are welcomed.
Mr. Crack 007
===================================== Here is squid cache.log after
squid restart =============================
2008/01/24 04:54:41| WARNING: Very large maximum_object_size_in_memory
settings can have negative impact on performance
2008/01/24 04:54:41| Initialising SSL.
2008/01/24 04:54:41| User-Agent logging is disabled.
2008/01/24 04:54:41| Referer logging is disabled.
2008/01/24 04:54:41| DNS Socket created at 0.0.0.0, port 32773, FD 8
2008/01/24 04:54:41| Adding domain orbitnet.com.mm from /etc/resolv.conf
2008/01/24 04:54:41| Adding nameserver 202.1.1.1 from /etc/resolv.conf
2008/01/24 04:54:41| Adding nameserver 202.1.1.2 from /etc/resolv.conf
2008/01/24 04:54:41| Accepting proxy HTTP connections at 0.0.0.0, port
8080, FD 9.
2008/01/24 04:54:41| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2008/01/24 04:54:41| WCCP Disabled.
>>>>>> Here is my proxy list after restarting squid
2008/01/24 04:54:41| Configuring Parent 202.1.1.4/8080/3130
2008/01/24 04:54:41| Configuring Parent 202.1.1.5/8080/3130
2008/01/24 04:54:41| Configuring Parent 202.1.1.6/8080/3130
2008/01/24 04:54:41| Configuring Parent 202.1.1.7/8080/3130
2008/01/24 04:54:41| Configuring Parent 202.1.1.8/8080/3130
>>>>>
2008/01/24 04:54:41| Loaded Icons.
2008/01/24 04:54:41| Ready to serve requests.
2008/01/24 04:54:41| disabling (peer disappeared) digest from 203.81.71.88
2008/01/24 04:54:47| Reconfiguring Squid Cache (version 2.6.STABLE6)...
2008/01/24 04:54:47| FD 9 Closing HTTP connection
2008/01/24 04:54:47| FD 12 Closing ICP connection
2008/01/24 04:54:47| Cache dir '/var/spool/squid' size remains
unchanged at 20480000 KB
>>>> Here is the problem I suffers
2008/01/24 02:58:15| TCP connection to 202.1.1.4/8080 failed
2008/01/24 02:58:15| TCP connection to 202.1.1.4/8080 failed
2008/01/24 02:58:17| TCP connection to 202.1.1.4/8080 failed
2008/01/24 02:58:18| TCP connection to 202.1.1.4/8080 failed
2008/01/24 02:58:18| TCP connection to 202.1.1.4/8080 failed
2008/01/24 02:58:20| TCP connection to 202.1.1.4/8080 failed
2008/01/24 02:58:21| TCP connection to 202.1.1.4/8080 failed
2008/01/24 02:58:22| TCP connection to 202.1.1.4/8080 failed
2008/01/24 02:58:22| TCP connection to 202.1.1.4/8080 failed
2008/01/24 02:58:26| TCP connection to 202.1.1.4/8080 failed
2008/01/24 01:58:30| Detected DEAD Parent: 202.1.1.4
2008/01/24 02:58:41| TCP connection to 202.1.1.5/8080 failed
2008/01/24 02:58:43| TCP connection to 202.1.1.5/8080 failed
2008/01/24 02:58:43| TCP connection to 202.1.1.5/8080 failed
2008/01/24 02:58:44| TCP connection to 202.1.1.5/8080 failed
2008/01/24 02:58:49| TCP connection to 202.1.1.5/8080 failed
2008/01/24 02:58:54| TCP connection to 202.1.1.5/8080 failed
2008/01/24 02:58:56| TCP connection to 202.1.1.5/8080 failed
2008/01/24 02:59:23| TCP connection to 202.1.1.5/8080 failed
2008/01/24 02:59:32| TCP connection to 202.1.1.5/8080 failed
2008/01/24 02:59:54| parseHttpRequest: Unsupported method ' CONNECT'
2008/01/24 02:59:56| Detected DEAD Parent: 202.1.1.5
2008/01/24 02:59:57| TCP connection to 202.1.1.6/8080 failed
2008/01/24 02:59:59| TCP connection to 202.1.1.6/8080 failed
===================================== End of squid cache.log
=============================
Received on Wed Jan 23 2008 - 09:11:07 MST
This archive was generated by hypermail pre-2.1.9 : Fri Feb 01 2008 - 12:00:05 MST