Re: [squid-users] Load balancing on single machine

This is a discussion on Re: [squid-users] Load balancing on single machine within the Squid Users forums, part of the Web Server and Related Forums category; Marc Elsen <marc.elsen@imec.be> writes: > Dusan Djordjevic wrote: >> >> Monday 07 July ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-07-2003
Kinkie
 
Posts: n/a
Default Re: [squid-users] Load balancing on single machine

Marc Elsen <marc.elsen@imec.be> writes:

> Dusan Djordjevic wrote:
>>
>> Monday 07 July 2003 10:56, Marc Elsen:
>> > > I plan to install few instances of Squid on one multiprocessor box
>> > > and balance load between them. I plan to use LinuxVirtualServer
>> > > for it. Do someone have that kind of solution ? What load
>> > > balancing you suggest ? Any other recommendation ?
>> > Do you have an idea of the sustained http reqs/sec , your squid
>> > has to deal with ?

>>
>> Yes. I need specific non-caching proxy. There are 3000-5000 requests per
>> second. Currently I have one 4CPU box i would like to deploy.

>
> Hm, I think I read that squid can give you a max. of about 300
> reqs/sec.
> As stated before on the list squid on itself can not make
> use of more then one cpu.
>
> So I think in a virtual server setup, you may be better off with 4
> separate boxes (probably), I think it would give you more
> flexibility and squid service uptime, if one box is down,
> for instance.


If you're running on Linux, there is a trick which can balance
between 2 squid instances running on the same box, discriminating between
the two depending on the client IP address.
Run the second instance on some other http_port (i.e. 4128) and add this
iptables rule:

iptables -t nat -A PREROUTING -s 0.0.0.0/0.0.0.1 -p tcp \
--destination-port 3128 -j REDIRECT --to-ports 4128


More instances (in powers of 2) should be possible using similar tricks.


--
kinkie (kinkie-squid [at] kinkie [dot] it)
Random fortune, unrelated to the message:
Can't act. Slightly bald. Also dances.
-- RKO executive, reacting to Fred Astaire's screen test.
Cerf/Navasky, "The Experts Speak"
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:35 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0