Hot swapping for Linux web/database servers
- by Art
Is there a way to perform the following under Linux:
There are two web servers, main and backup
There are two database servers (postgres), main and backup
Web Servers are in sync with each other, ie. configuration/content/applications are the same
Backup database is continuously synced up with main database.
If either of main servers goes down, it's being replaced with backup one on the fly.
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.