Load balancing for web servers

Vince jhary at unsane.co.uk
Wed Aug 30 14:10:13 UTC 2006


Phil Regnauld wrote:
> Baldur Gislason (baldur) writes:
>> I'd like to set up a load balancing and resiliance system to
>> load balance between a bunch of web servers running Apache tomcat (slow java stuff).
>> Ideally I'd like each client IP to get mapped to a certain server and keep that
>> mapping throughout the entire session. I'd also like to have some means of detecting
>> a server that goes down and yank it from the load balancing pool. I do understand I
>> may have to write some code on that side.
> 
> 	pf and sticky rdr.
> 
> 	Use a shell script that pings the hosts on the backend, to insert/remove
> 	them from a persistent table.
> 

I'd probably go with that for a basic solutions myself, but also have a
look at the results of
cd /usr/ports && make search key="load balance"
haproxy looks promising for your requirements.


Vince

> 
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"



More information about the freebsd-net mailing list