Open GoogleCodeExporter opened 8 years ago
Could you paste MHA configuration file? If candidate_master=1 is set on slave1
and not set on slave2, slave1 is chosen as a new master regardless of
replication lag.
Original comment by Yoshinor...@gmail.com
on 23 Sep 2013 at 10:43
Below is my the app.cnf entry:
[server default]
# working directory on the manager
manager_workdir=/var/log/masterha/test-ha-db
# manager log file
manager_log=/var/log/masterha/test-ha-db/test-ha-db.log
master_binlog_dir=/var/log/mysql
check_repl_filter=0
[server1]
hostname=test-ha-db1
ignore_fail=1
[server2]
hostname=test-ha-db2
ignore_fail=1
[server3]
hostname=test-ha-db3
ignore_fail=1
Below is global.cnf entry:
[server default]
user=root
password=xxxx
ssh_user=root
master_binlog_dir= /var/lib/mysql
remote_workdir=/home/mha/masterha/log/
ping_interval=3
master_ip_online_change_script=/etc/conf/masterha/master_ip_online_change
Original comment by Gaurav.j...@gmail.com
on 24 Sep 2013 at 3:03
I even tried by removing "ignore_fail=1" from all servers but the result was
same.
Original comment by Gaurav.j...@gmail.com
on 24 Sep 2013 at 12:42
Original issue reported on code.google.com by
Gaurav.j...@gmail.com
on 23 Sep 2013 at 9:36