LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Andrew Reid <andrew.reid@plug.cx>
  To  : jonathan soong <jon.soong@imvs.sa.gov.au>
  Date: Thu, 16 Jan 2003 14:07:22 +1030

Re: Fail-Over web servers

On Thu, Jan 16, 2003 at 11:11:33AM +1030, jonathan soong wrote:

> As the machine is likely to be storing many 100's meg of data or even 
> gig's, restoring from backup is not really an option.
> 
> We are currently looking at running a secondary server that will sit 
> side by side the primary webserver. It is likely that we will either get 
> the firewall to monitor the machines and re-direct traffic if a machine 
> goes down, or run something like heart beat on the machines.

First thing to do would be to make sure the servers are in physically
different locations. Having two servers in fail-over configuration
will be no help at all if the server room catches on fire.

I'm not sure how robust the heartbeat software for Linux is. I'd be
more inclined to use a load-balancing switch (or, piece of software on
your nearest Linux router, if you must). If you do want to go down the
software path, Eddie[1] is worth a look.

> We will be using a mysql database on the primary with replication to the 
> secondary machine, hence the database is not a problem.

Right, so the web application running on each machine is connecting to
MySQL @ localhost, right?

> The main problem is that there will be many files sent to the primary 
> machine that will need to exist on the secondary machine as well.
> 
> The 2 options currently considered are:
> 1. Writing our own daemon programs to sync up the 'data' directories

Eeek!

> 2. Using something like ENBD (enhanced network block device). In which 
> case the secondary server would make some disk available for the primary 
>  webserver to incorporate into its RAID. Hence we would have 'real 
> time' mirroring over the network.

Have you considered the other network file system products out there
that support replication and fail-over, like Coda[2]?

> A further option (which is out of our budget) would be to use an array 
> of scsi disks on a controller that could be plugged into the secondary 
> machine should the primary machine die.

That be a real bitch if the server crashed at half-passed four in the
morning. You'll be happier in the long-run if you've got something
that can handle fail-over automatically.

   - andrew

[1] http://eddie.sourceforge.net/

[2] http://www.coda.cs.cmu.edu/

-- 
| Andrew Reid [mailto:andrew.reid@plug.cx]
| Overworked and Underpaid Network Monkey
| C: +61-401-946-813  F: +61-8-8379-1093
| Finger andrew@keetoo.alfred.cx for PGP Public Key

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: jO5svyiANQJ6qVGueYGxcsORnqFp1ZPr

iQA/AwUBPiYo8gOEtj6a+QJxEQL7YwCdFIyCHqiV39msQG4yKVkGd6Q3p8AAnApn
Ec6yC/iwuZRKiTTs6s4z114P
=Cwqu
-----END PGP SIGNATURE-----

-- 
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.openprojects.net
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page