[squid-users] Loadbalance & Failover between parent proxies

From: Nishant Sharma <codemarauder_at_gmail.com>
Date: Wed, 10 Jul 2013 20:24:48 +0530

Hi,

I have two parent proxies configured. Parent 1 is on a faster link while
Parent 2 is on a DSL.

Squid 3.1.20 is the child proxy while Parent proxies are 3.1.6.

I have some domains which need higher priority and should be failed-over
and rest all of the traffic can be load-balanced.

Here is my configuration snippet:

-----------------
cache_peer 10.27.0.1 parent 8082 0 no-query no-digest connection-auth=on
login=PASSTHRU round-robin proxy-only

cache_peer 10.28.0.1 parent 8082 0 no-query no-digest connection-auth=on
login=PASSTHRU round-robin proxy-only

prefer_direct off
nonhierarchical_direct off

cache_peer_access 10.27.0.1 allow highpriodomains
cache_peer_access 10.27.0.1 deny bulkupdatedomains

cache_peer_access 10.28.0.1 allow bulkupdatedomains

cache_peer_access 10.27.0.1 allow all
cache_peer_access 10.28.0.1 allow all
------------------

I would like highpriodomains to go to Parent 1 (10.27.0.1) and only go
to Parent 2 (10.28.0.1) when Parent 1 is detected dead. But when I see
the logs on the Parents, I see requests to highpriodomains also getting
load-balanced.

Also, when either of the parent is detected dead, all traffic should go
to the live Parent, while bulkupdatedomains can take a hit for the time
while faster link Parent is down.

Could someone please suggest the ACLs/configuration that I can put in
place to achieve what I want to?

Thanks in advance.
Regards,
Nishant
Received on Wed Jul 10 2013 - 14:55:13 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 11 2013 - 12:00:24 MDT