Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Aug 2004 14:51:56 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Joseph Begumisa <begj@trueafrican.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: High Availability Solution
Message-ID:  <20040824135156.GB4906@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20040824154019.A50417@mail.trueafrican.com>
References:  <20040824154019.A50417@mail.trueafrican.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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