Re: High Availability FreeBSD www cluster



Michael Christie wrote:
Hi all ,

I want to cluster some freeBSD servers, The purpose of this is to learn. I would like to run some basic services like www and mail on a test network. I would like to set up the servers so if one server falls over the other will take over the services automatically, load balanceing would be good as well.

web links any thing to help me get started would be good. No I do not want to change over to linux.




High Availability means that your cluster should work even some system components fail.

http://en.wikipedia.org/wiki/High-availability_cluster

For building HA cluster you should have at last two machines, first will run in master mode, second in slave( standby )mode.

In every time only one machine works and provide some services (www, db, etc)

Very good idea is to use NAS(SAN) - Network Access Storage ( http://en.wikipedia.org/wiki/Network-attached_storage ) with shared disk.
Both nodes of HA cluster will use this shared disk (but only one in certain time). If one node fails, second node (standby node) will become a master of cluster and will start some services, that cluster provided.
But NAS systems is not cheap!!

Another way is to use software systems such us DRBD, NFS, chironfs, rsync etc. Most of this high-availability software solution works by replicating a disk partition in a master/slave mode.

Heartbeat + DRBD is one of most popular redundant solutions.
DRBD mirrors a partition between two machines allowing only one of them to mount it at a time. Heartbeat then monitors the machines, and if it detects that one of the machines has died, it takes control by mounting the mirrored disk and starting all the services the other machine is running.
Unfortunately DRBD runs only on linux but I recommend you to see how it works for understanding this technology.

http://www.rhic.bnl.gov/hepix/talks/041020am/miers.pdf
http://www.linux-ha.org
http://www.linux-ha.org/DRBD/GettingStarted
http://www.linuxjournal.com/article/9074


For freebsd to mirror content on bouth nodes you can use rsync as in this howto:
http://www.taygeta.com/ha-postgresql.html

Another way like as DRBD is to use chironfs + nfs (sysutils/fusefs-chironfs/)
http://www.furquim.org/chironfs


Also look at CARP (Common Address Redundancy Protocol)

man carp
http://www.openbsd.org/faq/pf/carp.html


http://www.postgresql.org/docs/8.3/static/high-availability.html (for databases)

ps. sorry for my eng


--
Best Wishes,
PAIX-UANIC | SK3929-RIPE

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: High Availability FreeBSD www cluster
    ... So I am a bit lost and i am wanting to learn how to cluster freebsd ... A means to detect failed / out of service machines and redirect traffic to alternative servers ... or you have to store the session state in a way ...
    (freebsd-questions)
  • Re: sql clustering vs load balancing
    ... and the are load balanced using a microsoft load balance cluster. ... machines also host our web sites. ... sigle ip address for my database servers. ...
    (microsoft.public.sqlserver.clustering)
  • Re: SQL Server Cluster move
    ... MVP - Windows Server - Clustering ... > I built a SQL Cluster in a dev area next to my cube. ... > servers pointing at it and everything was working perfectly. ... > up all 4 of my machines and moved them to my colo. ...
    (microsoft.public.sqlserver.clustering)
  • SQL Server Cluster move
    ... I built a SQL Cluster in a dev area next to my cube. ... up all 4 of my machines and moved them to my colo. ... IP's and all my web servers came up too. ...
    (microsoft.public.sqlserver.clustering)
  • Re: Windows 2003 Network Load Balancing Problem
    ... Sadly my servers websites were configured with specific IPs and host ... I find it very strange why the NLB driver can receive on a virtual IP ... he set his IIS website to use ALL UNASSIGNED addresses rather than ... specifically pointing it at the single virtual cluster address. ...
    (microsoft.public.windows.server.clustering)