[squid-users] can't failover in round-robin

From: Ken Peng <kenpeng_at_rambler.ru>
Date: Fri, 26 Jun 2009 09:11:48 +0400

Dear Gurus,

I have configured squid-3.0.stable15 with these rules for an
accelerator:

cache_peer 192.168.1.100 parent 80 0 no-query front-end-https=auto
originserver name=portsw_1_1 round-robin
cache_peer 192.168.1.101 parent 80 0 no-query front-end-https=auto
originserver name=portsw_1_2 round-robin

acl port_1 myport 80
cache_peer_access portsw_1_1 allow port_1
cache_peer_access portsw_1_2 allow port_1

All run fine when both backend servers are fine.

But, when I shutdown one of the backend servers (for example,shutdown
192.168.1.101), I then accessed to Squid, got an error page and can't
open the website correctly.

The cache.log said:

2009/06/26 12:50:02| TCP connection to 192.168.1.101/80 failed

Why Squid doesn't failover between the two backend servers?
When 1.101 is down, squid should choose 1.100 as original server, and
should not show an error page to users.

Please help, thank you a lot in advance.

Regards.
Received on Fri Jun 26 2009 - 05:12:01 MDT

This archive was generated by hypermail 2.2.0 : Fri Jun 26 2009 - 12:00:04 MDT