We do the following, we have one web server designated as the "upload" server. Any changes to the website are uploaded to a folder structure on that machine, let's call it /home/upload/html
We then have a sync script we run manually on each of the three main web servers in a specific order, the first sync script is on the "local" machine with the update, this then does a local rsync from /home/upload/html to /var/www/html, then other two machines then do an rsync from the first's /var/www/html
You could always fully automate this process and have the other servers rsync on a timed basis (hourly, 5 minutes, 1 minute, your choice) from the "upload" server.
|