Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions