Load balancing for web servers

Gleb Smirnoff glebius at FreeBSD.org
Wed Aug 30 14:33:14 UTC 2006


On Wed, Aug 30, 2006 at 04:22:54PM +0200, Max Laier wrote:
M> > > I'd like to set up a load balancing and resiliance system to
M> > > load balance between a bunch of web servers running Apache tomcat
M> > > (slow java stuff). Ideally I'd like each client IP to get mapped to a
M> > > certain server and keep that mapping throughout the entire session.
M> > > I'd also like to have some means of detecting a server that goes down
M> > > and yank it from the load balancing pool. I do understand I may have
M> > > to write some code on that side.
M> >
M> > 	pf and sticky rdr.
M> >
M> > 	Use a shell script that pings the hosts on the backend, to
M> > insert/remove them from a persistent table.
M> 
M> Have a look at: http://www.countersiege.com/doc/pfsync-carp/#big for one 
M> idea.  All requirements (carp, pf and pfsync) are available in FreeBSD as 
M> well.

Yeah, I was just looking for that URL to post it... :)

Also, I'm using a small program to monitor backends and edit the pf
tables:

http://people.freebsd.org/~glebius/pfmon/

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE


More information about the freebsd-net mailing list