PDA

View Full Version : Need a simple guide for setting up a basic two server failover?


VinceDee
22nd February 2008, 21:23
Failover, High Availability, mirror, eh. Hopefully I used the correct terminology for what I want here. I have your basic cable internet connection with a standard 54g Netgear wireless router/access point, and I'm running a test server on it (Gutsy Gibbon Perfect Server (http://www.howtoforge.com/perfect_server_ubuntu7.10)).

What I'd like is a second web server that takes over if the first server goes down (I think that's called failover?).

Of course, I love all the fantastic HOWTOs that you guys have on the site, but there doesn't seem to be one for what I'm trying to do. I don't need a load balancer, and setting up MYSQL replication doesn't seem to be the entire answer. The HA Apache Cluster (http://www.howtoforge.com/high_availability_loadbalanced_apache_cluster) seems too much for my needs right now. I did do the rsync mirroring (http://www.howtoforge.com/mirroring_with_rsync) but that only mirrors the /var/www directory (and the mirror wouldn't take over if the first server went down).

The closest thing I saw on the forums was high availability with two servers (http://www.howtoforge.com/forums/showthread.php?t=4990&highlight=high+availability) but even that person was trying to do load balancing and MYSQL replication.

Can you guys steer me to a good simple solution?

falko
23rd February 2008, 18:27
Combine these tutorials:
http://www.howtoforge.com/high-availability-load-balancer-haproxy-heartbeat-debian-etch
http://www.howtoforge.com/mysql5_master_master_replication_debian_etch
http://www.howtoforge.com/logresolvemerge.pl_merge_apache_access_logs

That's what HowtoForge is currently running on. :)