Re: [squid-users] Load balancing squid with squid

From: Christoph Haas <email@dont-contact.us>
Date: Fri, 18 Nov 2005 15:31:42 +0100

On Friday 18 November 2005 14:31, Stefano Mason wrote:
> I'm thinking to load balancing 2 squid processes with 1 squid. Is this
> idea stupid?
>
> Landscape:
>
> 1 SMP machine with:
> squid1 with cache_dir (a real piece of disk) bind localhost
> squid2 with cache_dir (a real piece of disk) bind localhost
>
> squidv with cache_dir null
> cache_peer 127.0.0.1 parent 3128 3130 no-query proxy-only round-robin
> cache_peer 127.0.0.1 parent 4128 4130 no-query proxy-only round-robin
> never_direct allow all
>
> Can someone supply me any comments?

Although this would technically work I don't see any gain here - just more
overhead. IMHO two Squids on the same server won't make things go faster
than a single Squid.

If your proxies are not fast enough (CPU, network bandwidth, etc.) then
consider setting up Squids on different servers and put a decent hardware
load balancer in front of it. We use a Foundry load balancer and four
Squid nodes here.

Btw, you can use multiple cache directories (cache_dir) in case you want to
use different hard disks to speed up the disk cache.

 Christoph

-- 
~
~
".signature" [Modified] 2 lines --100%--                2,41         All
Received on Fri Nov 18 2005 - 07:31:52 MST

This archive was generated by hypermail pre-2.1.9 : Thu Dec 01 2005 - 12:00:10 MST