Auto loadbalancing with iptables & iproute2
Ramin Alidousti
ramin@cannon.eng.us.uu.net
Mon, 16 Jul 2001 08:15:02 -0400
On Mon, Jul 16, 2001 at 07:49:29AM +0200, bert hubert wrote:
> > Neat idea. But some points:
> >
> > 1) Can't you do the same thing with the shared IP living on your router
> > and doing DNAT based on the formula you described.
>
> If your router is a simple machine, you would have a hard time doing this. A
> lot of people (still :-)) use Ciscos as routers and often don't like to do
> anything more complex than needed.
Correct. Place a linux box behind the cisco...
> > 2) The load is not fairly balanced...
>
> That would then be up to a daemon shuffling the routes - you could have
> metrics to give some hosts more attention than others. Iptables connection
> tracking makes sure that even after routes have been reshuffled existing
> routes stay alive.
Interesting! The simplest load-balancing scheme I can think of is round-robin.
Do you know of any daemon doing that?
> > 3) If I spend so much money to by a switch, I'd not like to degrade my
> > switch to act as a hub.
>
> True. This is not for everybody.
Cheers,
Ramin
> > But, very nice try :-)
> >
> > Hou je maar goed.
>
> Very good :-)
>
> Zal ik doen!
>
> Regards,
>
> bert
>
> --
> http://www.PowerDNS.com Versatile DNS Services
> Trilab The Technology People
> 'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet