Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do mysql master failover only when there are more than one slaves #107

Open
GoogleCodeExporter opened this issue Jul 30, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

Hi

I have a mysql cluster with one master node and two hot standby slave nodes. 
All reads and writes go to master. The three node cluster is managed by 
corosync pacemaker that has a VIP for the master node. At any given time at 
least two nodes should be up and running for the VIP to be online. Is there a 
possibility to do mysql master failover only when there are two slaves in the 
mha config. In case of only one slave there should be no mysql failover 
performed. One work around could be setting --last_failover_minute to a higher 
value for example 1440 minutes but that still wont ensure that the failover 
will not happen again when the new master node goes down after 
last_failover_minute had passed. 


OS: Debian GNU/Linux 7.8 (wheezy)
mysql-server: 5.6.19-1~exp1-log (Debian) 
mha4mysql-manager: 0.53-3
mha4mysql-node: 0.53-1

Your response would be greatly appreciated.
- Omair

Original issue reported on code.google.com by [email protected] on 18 Feb 2015 at 2:40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant