[Gllug] load balancing ip's

Dan Kolb dankolb at ox.compsoc.net
Tue Nov 4 22:20:07 UTC 2003


Murray wrote:

> For reasons beyond my control, the domain must resolve to exactly 1 ip
> address.  Not fussed about complex load balancing tricks, just want an easy
> way to split the load across multiple servers.
> 
> Can it be done with iptables? I know you can use that to NAT 1 ip -> 1 ip,
> but can you do 1 ip -> many ip?
> 
> What's the best/easiest solution?

You can use Linux IP Virtual Servers (IPVS) to provide load balancing - 
we used it with success at ex-workplace. Be prepared for some headaches 
in setting it up, though.

Alternatively, OpenBSD's pf has this facility built-in - you can 
redirect requests to a range of IP addresses, and tell it to use those 
IP addresses in a round-robin fashion (it might now support other 
load-balancing algorithms, but I'm not sure).

Dan


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list