Re: load balancer
Przemyslaw Wegrzyn <[EMAIL PROTECTED]> 16 Mar 2001, at 10:17: On 15 Mar 2001, Fraser Campbell wrote: > Allen Ahoffman <[EMAIL PROTECTED]> writes: > > Is there a distribution that will cheaply replace a load balancer? > > e.g. for web servers. LVS, ...? > > man ipmasqadm ... you'll see this: > >Redirect all web traffic to internals hostA and hostB, >where hostB will serve 2 times hostA connections. Forward >rules already masq internal hosts to outside (typical). > > ipchains -I input -p tcp -y -d yours.com/32 80 -m 1 > ipmasqadm mfw -I -m 1 -r hostA 80 -p 10 ipmasqadm mfw > -I -m 1 -r hostB 80 -p 20 > > Voila, load balancer ... any Linux distribution can do this. :)) And what about sessions ? As session data is usually stored in a database, have the sql server on a separate machine (you would anyway if you have enough traffic to need a load balancer, wouldn't you?) Often, using a database to store session data is a major bottleneck... Better alternatives, in my experience, are to use things like shared memory. PHP and friends supports this quite well, and has much higher performance. Just thought I'd toss that out as an experience I learned from. Eric
Re: load balancer
>Przemyslaw Wegrzyn <[EMAIL PROTECTED]> 16 Mar 2001, at >10:17: >> On 15 Mar 2001, Fraser Campbell wrote: >> > Allen Ahoffman <[EMAIL PROTECTED]> writes: >> > > Is there a distribution that will cheaply replace a load >balancer? >> > > e.g. for web servers. LVS, ...? >> > >> > man ipmasqadm ... you'll see this: >> > >> >Redirect all web traffic to internals hostA and hostB, >> >where hostB will serve 2 times hostA connections. Forward >> >rules already masq internal hosts to outside (typical). >> > >> > ipchains -I input -p tcp -y -d yours.com/32 80 -m 1 >> > ipmasqadm mfw -I -m 1 -r hostA 80 -p 10 ipmasqadm mfw >> > -I -m 1 -r hostB 80 -p 20 >> > >> > Voila, load balancer ... any Linux distribution can do this. >> >> :)) And what about sessions ? > >As session data is usually stored in a database, >have the sql server on a separate machine (you >would anyway if you have enough traffic to need >a load balancer, wouldn't you?) Often, using a database to store session data is a major bottleneck... Better alternatives, in my experience, are to use things like shared memory. PHP and friends supports this quite well, and has much higher performance. Just thought I'd toss that out as an experience I learned from. Eric -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: load balancer
-- Forwarded message -- Date: Fri, 16 Mar 2001 10:34:45 +0100 (MET) From: DI Peter Burgstaller <[EMAIL PROTECTED]> To: Marcel Hicking <[EMAIL PROTECTED]> Subject: Re: load balancer > > :)) And what about sessions ? > > As session data is usually stored in a database, > have the sql server on a separate machine (you > would anyway if you have enough traffic to need > a load balancer, wouldn't you?) But that is not the only problem. HTTPS is another and also with LVS you can do much more "intelligent" load-balancing, using different balancing algorithms. Not to mention the fail-over capabilities. I'm not saying its impossible with ipchains, I'm just saying that a lot of people are working on more sophisticated solutions already and that those solutions are working great! - Cheers, Peter /--\ | Dipl.-Ing. Peter Burgstaller | | Technical Assistant and System Administrator | | @ all information network & services gmbh| | email: [EMAIL PROTECTED] | | phone: +43 662 452335| | fax : +43 662 452335 90 | \--/
Re: load balancer
On Fri, 16 Mar 2001, Marcel Hicking wrote: > Przemyslaw Wegrzyn <[EMAIL PROTECTED]> 16 Mar 2001, at > 10:17: > > On 15 Mar 2001, Fraser Campbell wrote: > > > Allen Ahoffman <[EMAIL PROTECTED]> writes: > > > > Is there a distribution that will cheaply replace a load > balancer? > > > > e.g. for web servers. LVS, ...? > > > > > > man ipmasqadm ... you'll see this: > > > > > >Redirect all web traffic to internals hostA and hostB, > > >where hostB will serve 2 times hostA connections. Forward > > >rules already masq internal hosts to outside (typical). > > > > > > ipchains -I input -p tcp -y -d yours.com/32 80 -m 1 > > > ipmasqadm mfw -I -m 1 -r hostA 80 -p 10 ipmasqadm mfw > > > -I -m 1 -r hostB 80 -p 20 > > > > > > Voila, load balancer ... any Linux distribution can do this. > > > > :)) And what about sessions ? > > As session data is usually stored in a database, Not always.. > have the sql server on a separate machine (you > would anyway if you have enough traffic to need > a load balancer, wouldn't you?) Generaly, right... Greetings
Re: load balancer
Przemyslaw Wegrzyn <[EMAIL PROTECTED]> 16 Mar 2001, at 10:17: > On 15 Mar 2001, Fraser Campbell wrote: > > Allen Ahoffman <[EMAIL PROTECTED]> writes: > > > Is there a distribution that will cheaply replace a load balancer? > > > e.g. for web servers. LVS, ...? > > > > man ipmasqadm ... you'll see this: > > > >Redirect all web traffic to internals hostA and hostB, > >where hostB will serve 2 times hostA connections. Forward > >rules already masq internal hosts to outside (typical). > > > > ipchains -I input -p tcp -y -d yours.com/32 80 -m 1 > > ipmasqadm mfw -I -m 1 -r hostA 80 -p 10 ipmasqadm mfw > > -I -m 1 -r hostB 80 -p 20 > > > > Voila, load balancer ... any Linux distribution can do this. > > :)) And what about sessions ? As session data is usually stored in a database, have the sql server on a separate machine (you would anyway if you have enough traffic to need a load balancer, wouldn't you?) Cheers, Marcel
Re: load balancer
> Allen Ahoffman <[EMAIL PROTECTED]> writes: > > > Is there a distribution that will cheaply replace a load balancer? > > e.g. > > for web servers. > > LVS, ...? I'm also currently evaluating load balancers with linux and am running a Piranha (ha.redhat.com) system very successfully at present. I haven't looked at Ultra Monkey yet, but will do. ASAIK they all use the LVS in one way or the other. The interface is different and I like the one of piranha very much. - Just my 0.02, Peter /--\ | Dipl.-Ing. Peter Burgstaller | | Technical Assistant and System Administrator | | @ all information network & services gmbh| | email: [EMAIL PROTECTED] | | phone: +43 662 452335| | fax : +43 662 452335 90 | \--/
Re: load balancer
On 15 Mar 2001, Fraser Campbell wrote: > Allen Ahoffman <[EMAIL PROTECTED]> writes: > > > Is there a distribution that will cheaply replace a load balancer? > > e.g. > > for web servers. > > LVS, ...? > > man ipmasqadm ... you'll see this: > >Redirect all web traffic to internals hostA and hostB, >where hostB will serve 2 times hostA connections. Forward >rules already masq internal hosts to outside (typical). > > ipchains -I input -p tcp -y -d yours.com/32 80 -m 1 > ipmasqadm mfw -I -m 1 -r hostA 80 -p 10 > ipmasqadm mfw -I -m 1 -r hostB 80 -p 20 > > Voila, load balancer ... any Linux distribution can do this. :)) And what about sessions ?
Re: load balancer
-- Forwarded message -- Date: Fri, 16 Mar 2001 10:34:45 +0100 (MET) From: DI Peter Burgstaller <[EMAIL PROTECTED]> To: Marcel Hicking <[EMAIL PROTECTED]> Subject: Re: load balancer > > :)) And what about sessions ? > > As session data is usually stored in a database, > have the sql server on a separate machine (you > would anyway if you have enough traffic to need > a load balancer, wouldn't you?) But that is not the only problem. HTTPS is another and also with LVS you can do much more "intelligent" load-balancing, using different balancing algorithms. Not to mention the fail-over capabilities. I'm not saying its impossible with ipchains, I'm just saying that a lot of people are working on more sophisticated solutions already and that those solutions are working great! - Cheers, Peter /--\ | Dipl.-Ing. Peter Burgstaller | | Technical Assistant and System Administrator | | @ all information network & services gmbh| | email: [EMAIL PROTECTED] | | phone: +43 662 452335| | fax : +43 662 452335 90 | \--/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: load balancer
On Fri, 16 Mar 2001, Marcel Hicking wrote: > Przemyslaw Wegrzyn <[EMAIL PROTECTED]> 16 Mar 2001, at > 10:17: > > On 15 Mar 2001, Fraser Campbell wrote: > > > Allen Ahoffman <[EMAIL PROTECTED]> writes: > > > > Is there a distribution that will cheaply replace a load > balancer? > > > > e.g. for web servers. LVS, ...? > > > > > > man ipmasqadm ... you'll see this: > > > > > >Redirect all web traffic to internals hostA and hostB, > > >where hostB will serve 2 times hostA connections. Forward > > >rules already masq internal hosts to outside (typical). > > > > > > ipchains -I input -p tcp -y -d yours.com/32 80 -m 1 > > > ipmasqadm mfw -I -m 1 -r hostA 80 -p 10 ipmasqadm mfw > > > -I -m 1 -r hostB 80 -p 20 > > > > > > Voila, load balancer ... any Linux distribution can do this. > > > > :)) And what about sessions ? > > As session data is usually stored in a database, Not always.. > have the sql server on a separate machine (you > would anyway if you have enough traffic to need > a load balancer, wouldn't you?) Generaly, right... Greetings -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: load balancer
Przemyslaw Wegrzyn <[EMAIL PROTECTED]> 16 Mar 2001, at 10:17: > On 15 Mar 2001, Fraser Campbell wrote: > > Allen Ahoffman <[EMAIL PROTECTED]> writes: > > > Is there a distribution that will cheaply replace a load balancer? > > > e.g. for web servers. LVS, ...? > > > > man ipmasqadm ... you'll see this: > > > >Redirect all web traffic to internals hostA and hostB, > >where hostB will serve 2 times hostA connections. Forward > >rules already masq internal hosts to outside (typical). > > > > ipchains -I input -p tcp -y -d yours.com/32 80 -m 1 > > ipmasqadm mfw -I -m 1 -r hostA 80 -p 10 ipmasqadm mfw > > -I -m 1 -r hostB 80 -p 20 > > > > Voila, load balancer ... any Linux distribution can do this. > > :)) And what about sessions ? As session data is usually stored in a database, have the sql server on a separate machine (you would anyway if you have enough traffic to need a load balancer, wouldn't you?) Cheers, Marcel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: load balancer
> Allen Ahoffman <[EMAIL PROTECTED]> writes: > > > Is there a distribution that will cheaply replace a load balancer? > > e.g. > > for web servers. > > LVS, ...? I'm also currently evaluating load balancers with linux and am running a Piranha (ha.redhat.com) system very successfully at present. I haven't looked at Ultra Monkey yet, but will do. ASAIK they all use the LVS in one way or the other. The interface is different and I like the one of piranha very much. - Just my 0.02, Peter /--\ | Dipl.-Ing. Peter Burgstaller | | Technical Assistant and System Administrator | | @ all information network & services gmbh| | email: [EMAIL PROTECTED] | | phone: +43 662 452335| | fax : +43 662 452335 90 | \--/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: load balancer
On 15 Mar 2001, Fraser Campbell wrote: > Allen Ahoffman <[EMAIL PROTECTED]> writes: > > > Is there a distribution that will cheaply replace a load balancer? > > e.g. > > for web servers. > > LVS, ...? > > man ipmasqadm ... you'll see this: > >Redirect all web traffic to internals hostA and hostB, >where hostB will serve 2 times hostA connections. Forward >rules already masq internal hosts to outside (typical). > > ipchains -I input -p tcp -y -d yours.com/32 80 -m 1 > ipmasqadm mfw -I -m 1 -r hostA 80 -p 10 > ipmasqadm mfw -I -m 1 -r hostB 80 -p 20 > > Voila, load balancer ... any Linux distribution can do this. :)) And what about sessions ? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: load balancer
Allen Ahoffman <[EMAIL PROTECTED]> writes: > Is there a distribution that will cheaply replace a load balancer? > e.g. > for web servers. > LVS, ...? man ipmasqadm ... you'll see this: Redirect all web traffic to internals hostA and hostB, where hostB will serve 2 times hostA connections. Forward rules already masq internal hosts to outside (typical). ipchains -I input -p tcp -y -d yours.com/32 80 -m 1 ipmasqadm mfw -I -m 1 -r hostA 80 -p 10 ipmasqadm mfw -I -m 1 -r hostB 80 -p 20 Voila, load balancer ... any Linux distribution can do this. -- Fraser Campbell <[EMAIL PROTECTED]> Starnix Inc. Telephone: (905) 771-0017Thornhill, Ontario, Canada http://www.starnix.com/ Professional Linux Services & Products
Re: load balancer
Allen Ahoffman <[EMAIL PROTECTED]> writes: > Is there a distribution that will cheaply replace a load balancer? > e.g. > for web servers. > LVS, ...? man ipmasqadm ... you'll see this: Redirect all web traffic to internals hostA and hostB, where hostB will serve 2 times hostA connections. Forward rules already masq internal hosts to outside (typical). ipchains -I input -p tcp -y -d yours.com/32 80 -m 1 ipmasqadm mfw -I -m 1 -r hostA 80 -p 10 ipmasqadm mfw -I -m 1 -r hostB 80 -p 20 Voila, load balancer ... any Linux distribution can do this. -- Fraser Campbell <[EMAIL PROTECTED]> Starnix Inc. Telephone: (905) 771-0017Thornhill, Ontario, Canada http://www.starnix.com/ Professional Linux Services & Products -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: load balancer
On Thu, Mar 15, 2001 at 03:06:41PM -0500, Allen Ahoffman wrote: > Is there a distribution that will cheaply replace a load balancer? > e.g. > for web servers. > LVS, ...? Take a look at Ultra Monkey (http://ultramonkey.org/). I am currently working on debian packages for the components of Ultra Monkey. -- Horms [EMAIL PROTECTED] http://vergenet.net/~horms/
Re: load balancer
On Thu, Mar 15, 2001 at 03:06:41PM -0500, Allen Ahoffman wrote: > Is there a distribution that will cheaply replace a load balancer? > e.g. > for web servers. > LVS, ...? Take a look at Ultra Monkey (http://ultramonkey.org/). I am currently working on debian packages for the components of Ultra Monkey. -- Horms [EMAIL PROTECTED] http://vergenet.net/~horms/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]