Hi,
We are looking at database replication for rolling deploys. It gets complicated as our deploys involve data migrations too. What would be a good replication scheme.
I guess my question is on how to setup the replication.
Supposing we have 4 webservers and 2 database servers, how do I make the update so that all the writes are replicated properly.
- Take down half of webservers, update code
- Take down first database server, migrate it up to use the new code base
Bring back up the first databse server, then the 2 webservers
Do the same with the other half.
But the problem with this scenario is how do you transfer the non-migrated database data to the migrated database.
Thanks
Note: Apologize my question wasn't clearer earlier