I'm not an expert sys admin or expert programmer, so go easy on me, I just want more redundancy and to sleep soundly while not getting to complex
#####################################
Here's my idea, let me know where I have problems/holes in my process/logic or break rules:
I want a little more redundancy so I have an idea to have all my customers use 4 DNS servers on their domains. The first two dns point to server 1 the 2nd two point to server 2.
Server 1 is a standard DA install. The user uploads all web data to here as well as the DA control panel. This server sends a live rsync mirror of all needed files and directories at every x minutes to server 2.
Server 2 is a standard DA install identical to the master server. It get's a copy of all the data on the master every x minutes. It should not do any mail, mysql, ftp, DA. It should only serve web data in case the master is down.
#####################################
Questions/thoughts:
1) is it better to just keep server 2 offline and manually setup server 2 to assume the IP's of server 1 in case server 1 fails? (not good if you are on vacation)
2) is it better to come up with some kind of autofailover (server 2 checks to see if server 1 is online, if its offline then it automatically assumes the IP's of server 1)
3) how does DNS work more exactly? Does DNS always seek 1, 2, 3, 4 in that order or is it random?
4) Has anyone done this?
5) Is it better to use shell scripts or Perl running cron to do the scripting in 2)?
6) What data/files/directories need to be rsynced to server 2 to create an auto-failover that just works without configuration (like running ip switch scripts or other DA scripts)?
7) can rsync really create a live mirror, what is the latency and what should the copy frequency be?
8) what are any firewall issues assuming that each server runs ipfw?
#####################################
Ideas/comments/suggestions?
#####################################
Here's my idea, let me know where I have problems/holes in my process/logic or break rules:
I want a little more redundancy so I have an idea to have all my customers use 4 DNS servers on their domains. The first two dns point to server 1 the 2nd two point to server 2.
Server 1 is a standard DA install. The user uploads all web data to here as well as the DA control panel. This server sends a live rsync mirror of all needed files and directories at every x minutes to server 2.
Server 2 is a standard DA install identical to the master server. It get's a copy of all the data on the master every x minutes. It should not do any mail, mysql, ftp, DA. It should only serve web data in case the master is down.
#####################################
Questions/thoughts:
1) is it better to just keep server 2 offline and manually setup server 2 to assume the IP's of server 1 in case server 1 fails? (not good if you are on vacation)
2) is it better to come up with some kind of autofailover (server 2 checks to see if server 1 is online, if its offline then it automatically assumes the IP's of server 1)
3) how does DNS work more exactly? Does DNS always seek 1, 2, 3, 4 in that order or is it random?
4) Has anyone done this?
5) Is it better to use shell scripts or Perl running cron to do the scripting in 2)?
6) What data/files/directories need to be rsynced to server 2 to create an auto-failover that just works without configuration (like running ip switch scripts or other DA scripts)?
7) can rsync really create a live mirror, what is the latency and what should the copy frequency be?
8) what are any firewall issues assuming that each server runs ipfw?
#####################################
Ideas/comments/suggestions?