Open GoogleCodeExporter opened 8 years ago
Main purpose of the secondary_check_script is to avoid split brain. Suppose
there are one master and three slaves, master is in rack1 and slaves are in
rack 2,3,4. If rack1 is down but master itself is running, MHA decides master
is dead and starts failover, but if rack1 recovers, there is a risk that
applications send write traffics to the old master. You need to make sure this
scenario does not happen. secondary_check_script helps here, by setting -s
some_host_in_rack_1. In that case MHA fails to connect to the remote host and
does not start failover. Failover does not start, but this is much better than
split brain.
Original comment by Yoshinor...@gmail.com
on 2 Aug 2014 at 5:15
Thank your detail explanation,and it have enhanced my understanding of this
parameter.
Thanks again!
Original comment by tiandong...@gmail.com
on 4 Aug 2014 at 2:59
Original issue reported on code.google.com by
tiandong...@gmail.com
on 1 Aug 2014 at 3:07