From owner-freebsd-net@FreeBSD.ORG Wed Aug 30 13:19:34 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 601C516A4E2 for ; Wed, 30 Aug 2006 13:19:34 +0000 (UTC) (envelope-from baldur@foo.is) Received: from gremlin.foo.is (gremlin.foo.is [194.105.250.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08B2E43D49 for ; Wed, 30 Aug 2006 13:19:33 +0000 (GMT) (envelope-from baldur@foo.is) Received: from 127.0.0.1 (localhost.foo.is [127.0.0.1]) by injector.foo.is (Postfix) with SMTP id 08855DA86F for ; Wed, 30 Aug 2006 13:19:32 +0000 (GMT) Received: by gremlin.foo.is (Postfix, from userid 1000) id 4C71FDA849; Wed, 30 Aug 2006 13:19:29 +0000 (GMT) Date: Wed, 30 Aug 2006 13:19:29 +0000 From: Baldur Gislason To: freebsd-net@freebsd.org Message-ID: <20060830131929.GD804@gremlin.foo.is> User-Agent: Mutt/1.4.2.1i X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on gremlin.foo.is X-Spam-Level: X-Spam-Status: No, score=-5.9 required=6.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 X-Sanitizer: Foo MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Subject: 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:19:34 -0000 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. Any suggestions to an approach? Can Netgraph do something like this? Baldur