This is my configure, and we use squid mutli-instance. 2 squid2.7 as frontend, 
and 3 squid2.7 as backend.And it's load-balanced.

cache_peer ip1 parent 3128 0 carp no-netdb-exchange no-digest no-query 
login=PASS no-tproxy name=backend1a http11
cache_peer ip2 parent 3128 0 carp no-netdb-exchange no-digest no-query 
login=PASS no-tproxy name=backend1b http11
cache_peer ip3 parent 3128 0 carp no-netdb-exchange no-digest no-query 
login=PASS no-tproxy name=backend1c http11





cache_peer_access backend1a allow all
cache_peer_access backend1b allow all
cache_peer_access backend1c allow all

hope can help u!    : ) 



在 2012-11-26,下午9:44,Sekar Duraisamy <[email protected]> 写道:

> Hi Team,
> 
> I have 2 squid instances running on the same machine with different port.
> 
> Proxy: proxy1.com: 3128 and 3129
> 
> Now i have created new squid instance on the machine with 3130 port
> and i need to load-balance traffic of 3130 with 3128 and 3129.
> 
> I have tried like this
> 
> acl xxx dstdomain xxx.com
> 
> cache_peer proxy1.com  parent 3128 0  no-query default round-robin
> weight=1 name= server1
> cache_peer proxy1.com  parent 3129 0  no-query default round-robin
> weight=1 name=server2
> 
> cache_peer_access server1 allow xxx
> cache_peer_access server2 allow xxx
> 
> But somehow it is not working..... All 3 instances are working in the
> same machine is a problem? If so is there a way configure in the same
> machine?
> 
> Thanks a lot in advance.
> 
> Regrds,
> Sekar

Reply via email to