By setting up another web server so that each club’s web site has a hot standby, we have significantly reduced the risk of downtime due to disaster. One of the most important factors in making a relatively seamless failover is always to keep both servers synchronized . This is done in two ways:
- By utilizing rsync to keep identical content between the live server and the backup server.
- By using database replication to keep the live and backup MariaDB databases in sync.
We developed rsync replication routines to allow clubs to update one server and have the web pages replicate automatically onto the other server. This is achieved by routine synchronization jobs performed by rsync. Also, when database queries are done on one server, they’re automatically and instantly replicated on the other server to enforce synchronization.