mysql replication master change on every X Day

Posted October 10, 2016 1.5k views

I have two server
one is live server and second one is standby server.
so every X day i am swapping this server.

so i make one server as live server as master and second standby have slave.

now after X day my Second one is live(master) ans First one is standby(slave)

so now i want to also make 3rd one slave server (now configured as per master server log number) but when i swap master server to slave then what change i need to do in 3rd slave server according new master server.


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

If I understand your question correctly you shouldn’t need to do anything. As long as it’s a member of the replication cluster the new master will begin being used. This is the same as if your master server were to crash. One of the slaves would become the new master server and things would continue running.