Hot swapping for Linux web/database servers

Posted by Art on Server Fault See other posts from Server Fault or by Art
Published on 2010-04-15T02:23:14Z Indexed on 2010/04/15 2:33 UTC
Read the original article Hit count: 300

Is there a way to perform the following under Linux:

  1. There are two web servers, main and backup
  2. There are two database servers (postgres), main and backup
  3. Web Servers are in sync with each other, ie. configuration/content/applications are the same
  4. Backup database is continuously synced up with main database.
  5. If either of main servers goes down, it's being replaced with backup one on the fly.
  6. When main database server goes back up, all the data from backup server is uploaded to it.

Essentially, I need the hot swapping working automatically with no or minimal user intervention, if possible. Recovery procedure is preferably automatic but can include some manual steps.

© Server Fault or respective owner

Related posts about hotswap

Related posts about backup