From owner-freebsd-questions@FreeBSD.ORG Tue Aug 24 13:52:02 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A76016A4CF for ; Tue, 24 Aug 2004 13:52:02 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80A6343D39 for ; Tue, 24 Aug 2004 13:52:01 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i7ODpuj0005351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 24 Aug 2004 14:51:56 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i7ODpuew005350; Tue, 24 Aug 2004 14:51:56 +0100 (BST) (envelope-from matthew) Date: Tue, 24 Aug 2004 14:51:56 +0100 From: Matthew Seaman To: Joseph Begumisa Message-ID: <20040824135156.GB4906@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Joseph Begumisa , freebsd-questions@freebsd.org References: <20040824154019.A50417@mail.trueafrican.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vGgW1X5XWziG23Ko" Content-Disposition: inline In-Reply-To: <20040824154019.A50417@mail.trueafrican.com> User-Agent: Mutt/1.5.6i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Tue, 24 Aug 2004 14:51:57 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040705, clamav-milter version 0.74a on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: High Availability Solution X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2004 13:52:02 -0000 --vGgW1X5XWziG23Ko Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 24, 2004 at 03:41:41PM +0300, Joseph Begumisa wrote: =20 > Does anyone know of a high availability solution that works on freebsd? = I=20 > have two freebsd servers and would like to have them operate in a way tha= t=20 > if one fails, the second kicks in. How you do this depends very much on the nature of the services those machines are providing. If it's a stateless service -- like serving out static content from a web server, then you can use a pretty rudimentary web switch that just round-robins between the two -- see the Apache docs on mod_rewrite and mod_proxy for some ideas. If you're building a firewall, then the PF firewall code recently imported from OpenBSD is something you should find interesting: one of it's excellent features is the CARP 'Common Address Redundancy Protocol' which has been ported: http://pf4freebsd.love2party.net/carp.html but I'm not sure if it's going to be in the up-and-coming 5.3-RELEASE. Beyond that, there are any number of tricks using net/freevrrp -- the trick with these however is to ensure that any necessary data containing the state of a session is distributed over all of the servers, or else failover won't work quite so well. Most databases have replication features nowadays (MySQL has this available by default in the standard install, for Postgresql, look at the databases/slony1 port.) Other sorts of service -- well, to get a more precise answer you'll just have to describe what you want to do in a less vague way. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --vGgW1X5XWziG23Ko Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBK0f8iD657aJF7eIRAk1IAJ0UFKtrVP1he+plQT25hVxs1vAZ8wCgqtVq 2Asv3LgxjCKjZ+DX1MPQt1M= =qnfI -----END PGP SIGNATURE----- --vGgW1X5XWziG23Ko--