[squid-users] Load balancing squid with squid

2005-11-18 Thread Stefano Mason
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?

Bye
Stefano


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

2005-11-18 Thread Christoph Haas
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