I've configured an web, email, mysql, dns cluster on debian 6. The servers I used is on to different computer centers. And my question is, with a domain like example.com -> server1 But if server1 doesent respond, can you get redirected to server2 ? same goes for email, webmail ?
I've explained the different options in this thread: http://www.howtoforge.com/forums/showthread.php?t=56693
Thx I've read alot about heartbeat, and keapalived. As far as I can see, it works under a LAN. GW(headrtbeat) --> switch --> WEB1 and WEB2 It should work. But my two servers is on different datacenters. With sepperated WAN addresses.
You should consider one of the oter options like a loadbalancer which redirects the incoming http requests to the working servers only or you switch the dns records and use a very short ttl. The dns switching is the easiest method but may cause a short downtime depending on the caching time of the dns servers.