yoshinorim / mha4mysql-manager

Development tree of Master High Availability Manager and tools for MySQL (MHA), Manager part
http://code.google.com/p/mysql-master-ha/
GNU General Public License v2.0
1.46k stars 501 forks source link

masterha_master_switch not working consistently. #108

Closed Santhineshkn closed 6 years ago

Santhineshkn commented 6 years ago

HI Team,

We have implemented mysql MHA with Keepalived where we are able to manage successfull automatic failover most of times but we are having this odd issue while performing masterha_master_switch online where online switch gets stuck for no reason and we cancel it with CTRL+C to get over it. But sometimes it gets completed with sucessfull message as share below for both the scenarios. Please help us find why we are getting this wierd issue. I couldn't find anything in the perl scripts as well. Kindly Help.

/usr/bin/masterha_master_switch --master_state=alive --conf=/etc/app1.cnf_db01master --new_master_host=testingserver01.teslamotors.com --orig_master_is_new_slave --interactive

Failed attempt

Wed May 23 00:28:05 2018 - [info] Killing thread 448 on testingserver01.teslamotors.com(xxxxx.11:3306).. Wed May 23 00:28:05 2018 - [info] ok. Wed May 23 00:28:05 2018 - [info] Killing thread 7600 on testingserver02.teslamotors.com(xxxxx.12:3306).. Wed May 23 00:28:05 2018 - [info] ok. Wed May 23 00:28:05 2018 - [info] Killing thread 7608 on testingserver03.teslamotors.com(xxxxx.13:3306).. Wed May 23 00:28:05 2018 - [info] ok.

Successfull attempt