My client doesn't have the budget to hire a team of Sun engineers to set up a true High Availability cluster. So we're looking for a way to just set up a failover box in a separate location which is always mostly in sync with the primary.
We use dnsmadeeasy for DNS, and with TTL's set to 5 mins, we're able to switch between boxes very quickly. So the only issue really is how to keep a fresh copy of all the data on the failover box.
Things to keep in sync:
/home
all mysl dbs
all email
all directadmin data
I'd like to avoid adding layers of complexity such as distributed filesystems, etc. I'm thinking the simplest solution is a cronjob which runs mysqlhotcopy and then rsyncs all the db's and the entire /home directory and any necessary DirectAdmin directories. Assuming the script runs every 5 mins, then in the event of an outage, I can simply log into dnsmadeeasy, point the domain to the failover server, and blammo we're 100% back in business with fresh data no more the 5 minutes out of date. All websites, email, databases -- everything "just works".
My questions are:
1. What DA dirs should be synced? (and what should be excluded)
2. Is syncing mail really just as easy as keeping the imap/ dirs in sync?
3. What obvious thing am I missing here that torpedos my whole idea?
Any ideas would be greatly appreciated.
We use dnsmadeeasy for DNS, and with TTL's set to 5 mins, we're able to switch between boxes very quickly. So the only issue really is how to keep a fresh copy of all the data on the failover box.
Things to keep in sync:
/home
all mysl dbs
all email
all directadmin data
I'd like to avoid adding layers of complexity such as distributed filesystems, etc. I'm thinking the simplest solution is a cronjob which runs mysqlhotcopy and then rsyncs all the db's and the entire /home directory and any necessary DirectAdmin directories. Assuming the script runs every 5 mins, then in the event of an outage, I can simply log into dnsmadeeasy, point the domain to the failover server, and blammo we're 100% back in business with fresh data no more the 5 minutes out of date. All websites, email, databases -- everything "just works".
My questions are:
1. What DA dirs should be synced? (and what should be excluded)
2. Is syncing mail really just as easy as keeping the imap/ dirs in sync?
3. What obvious thing am I missing here that torpedos my whole idea?
Any ideas would be greatly appreciated.