4) use the forward_max_tries directive (currently on squid-2 HEAD and
-3 HEAD):
http://www.squid-cache.org/bugs/show_bug.cgi?id=2632
On 30/06/2009, at 6:43 AM, Henrik Nordstrom wrote:
> fre 2009-06-26 klockan 10:18 +0400 skrev Ken Peng:
>
>> After long time (it's about 3 minutes), Squid found that peer was
>> dead.
>> So my question is, by what way squid will find a peer is dead or
>> alive?
>> Why it takes so long time?
>
> It's not time, it's 10 requests forwarded to the peer. The more
> traffic
> you have the faster this is, but when testing with a single user it
> may
> feel slow.
>
> There is three things you can do
>
> a. Tune down the connect timeout. Can be set either globally or per
> peer. This speeds up detection when a host is shut down.
>
> b. Enable retry_on_error making Squid automatically try the next
> possible path on failure.
>
> c. Enable the per-peer monitorurl feature (not yet available in
> Squid-3)
> telling Squid to actively monitor the health of the peer.
>
> All can be combined freely.
>
> Regards
> Henrik
>
-- Mark Nottingham mnot_at_yahoo-inc.comReceived on Thu Jul 16 2009 - 03:17:52 MDT
This archive was generated by hypermail 2.2.0 : Thu Jul 16 2009 - 12:00:03 MDT