|
|
|
|
|
by wiredfool
5694 days ago
|
|
If you lose your master server, you are running in a
degraded environment until you can rebuild ALL slaves from
scratch. This really sucks if you have a very large
database that takes a long time to rebuild.
I just tested this, and it's not quite true.Assume you have 1 master, and 2 slaves(1=new master/2=additional slave) each replicating directly from the master. If they're in sync, then if you: * shutdown the master
* shutdown slave1/new master
* remove slave1's recovery.conf file
* assign slave1 old master's ip address
* start slave1 as new master
then slave2 will follow and you'll still have a replicated set. If, instead of doing the shutdown/remove recovery.conf/startup dance, you touch the trigger file, a new timeline is created and the slave2 isn't going to follow that timeline. I haven't found a way to make a slave follow to a new timeline yet. |
|