Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Aug 2006 18:33:09 +0400
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        Max Laier <max@love2party.net>
Cc:        freebsd-net@FreeBSD.org, Baldur Gislason <baldur@foo.is>
Subject:   Re: Load balancing for web servers
Message-ID:  <20060830143309.GY76666@FreeBSD.org>
In-Reply-To: <200608301623.01478.max@love2party.net>
References:  <20060830131929.GD804@gremlin.foo.is> <20060830132659.GF30474@catpipe.net> <200608301623.01478.max@love2party.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060830143309.GY76666>