Search squid archive

Loadbalance & Failover between parent proxies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux