From owner-freebsd-net@FreeBSD.ORG Wed Aug 30 14:10:13 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 2A6A016A4DD for ; Wed, 30 Aug 2006 14:10:13 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unsane.co.uk [62.140.220.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E55143D49 for ; Wed, 30 Aug 2006 14:10:12 +0000 (GMT) (envelope-from jhary@unsane.co.uk) Received: from [192.168.10.217] (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.13.7/8.13.3) with ESMTP id k7UE9jr4011961 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Aug 2006 15:09:47 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-ID: <44F59C25.8040603@unsane.co.uk> Date: Wed, 30 Aug 2006 15:09:41 +0100 From: Vince User-Agent: Thunderbird 1.5.0.5 (X11/20060811) MIME-Version: 1.0 To: Phil Regnauld References: <20060830131929.GD804@gremlin.foo.is> <20060830132659.GF30474@catpipe.net> In-Reply-To: <20060830132659.GF30474@catpipe.net> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Baldur Gislason , 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 14:10:13 -0000 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"