Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Master-slave + master-master replication at the same time

$
0
0

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.

  1. Configure new server (master2) and import data from master1.
  2. Turn on master-master replication so master2 replicates from master1
  3. On each front-end server, change master to master2
  4. Switch DNS record for master database from master1 to master2
  5. Take down master1

Is this possible? Is there anything I should be paying attention to?


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>