[squid-users] Cache_peer load balancing

From: Sekar Duraisamy <sekarit_at_gmail.com>
Date: Tue, 27 Nov 2012 03:08:25 +0530

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.. It takes only first entry. The
request not going to 3129 ...

 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
Received on Mon Nov 26 2012 - 21:38:33 MST

This archive was generated by hypermail 2.2.0 : Tue Nov 27 2012 - 12:00:04 MST