[squid-users] Re: cache peering - load balancing and failover

From: Manu Garg <manugarg@dont-contact.us>
Date: Wed, 14 Nov 2007 19:29:16 +0530

On Nov 14, 2007 7:09 PM, Manu Garg <manugarg@gmail.com> wrote:
> Here is my problem:
>
> I have a cache server at location X: cache.X. This server peers up
> with cache servers at location Y and Z:
> cache1.Y,
> cache2.Y,
> cache1.Z,
> cache2.Z.
>
> I want cache.X to talk to cache[12].Y in round robin manner as long as
> they are accessible. Peering should failover to cache[12].Z only if
> X->Y connectivity is down.
>
> Is it possible to do this with squid? Probably, something of the sort -
>
> cache_peer cache1.Y parent 3128 0 no-query round-robin priority=1
> cache_peer cache2.Y parent 3128 0 no-query round-robin priority=1
> cache_peer cache1.Z parent 3128 0 no-query round-robin priority=2
> cache_peer cache2.Z parent 3128 0 no-query round-robin priority=2
>
> But, there is no such option as priority for cache_peer directive.
> There is a "weight" thing, but that also doesn't work with round-robin
> option.

Just found out that weighted round robin is available in squid 3.
Apologies for speaking too early. I'll see if weighted-round-robin can
do the job.

-Manu
Received on Wed Nov 14 2007 - 06:59:21 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:02 MST