Can a MySQL database which is doing master-slave replication to a number of slaves be configured to do master-master replication to a new database at the same time?
I have an application that has a master database (master1) and a number of front-end servers, each with a local slave database (slave1...n).
I'm trying to find a way to upgrade the master database without downtime. I need you to review and possibly confirm that the following would work.
- Configure new server (master2) and import data from master1.
- Turn on master-master replication so master2 replicates from master1
- On each front-end server, change master to master2
- Switch DNS record for master database from master1 to master2
- Take down master1
Is this possible? Is there anything I should be paying attention to?