From owner-freebsd-net@FreeBSD.ORG Wed Aug 30 13:27:44 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6ED0316A4DF for ; Wed, 30 Aug 2006 13:27:44 +0000 (UTC) (envelope-from regnauld@catpipe.net) Received: from moof.catpipe.net (moof.catpipe.net [195.249.214.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9445E43D7C for ; Wed, 30 Aug 2006 13:27:34 +0000 (GMT) (envelope-from regnauld@catpipe.net) Received: from localhost (moof.catpipe.net [195.249.214.130]) by localhost.catpipe.net (Postfix) with ESMTP id B24A86340C4; Wed, 30 Aug 2006 15:27:31 +0200 (CEST) Received: from moof.catpipe.net ([195.249.214.130]) by localhost (moof.catpipe.net [195.249.214.130]) (amavisd-new, port 10024) with ESMTP id 88615-07; Wed, 30 Aug 2006 15:27:30 +0200 (CEST) Received: from vinyl.catpipe.net (vinyl.catpipe.net [195.249.214.189]) by moof.catpipe.net (Postfix) with ESMTP id DB7A06340FD; Wed, 30 Aug 2006 15:27:30 +0200 (CEST) Received: by vinyl.catpipe.net (Postfix, from userid 1006) id 8E63178C31; Wed, 30 Aug 2006 15:26:59 +0200 (CEST) Date: Wed, 30 Aug 2006 15:26:59 +0200 From: Phil Regnauld To: Baldur Gislason Message-ID: <20060830132659.GF30474@catpipe.net> References: <20060830131929.GD804@gremlin.foo.is> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060830131929.GD804@gremlin.foo.is> X-Operating-System: FreeBSD 6.1-PRERELEASE i386 Organization: catpipe Systems ApS User-Agent: Mutt/1.5.11 X-Virus-Scanned: amavisd-new at catpipe.net Cc: freebsd-net@freebsd.org Subject: Re: Load balancing for web servers X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 13:27:44 -0000 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.