mha 故障

早过忘川 提交于 2020-08-10 22:44:54

 



[warning] Connection failed 1 time(s)..

Thu Sep  7 16:43:54 2017 - [info] Executing secondary network check script: /usr/local/bin/masterha_secondary_check -s 172.17.0.2 -s 172.17.0.3 -s 172.17.0.4 -s 172.17.0.5  --user=root  --master_host=172.17.0.3  --master_ip=172.17.0.3  --master_port=3306 --master_user=root --master_password=123456 --ping_type=SELECT

Thu Sep  7 16:43:54 2017 - [info] Executing SSH check script: save_binary_logs --command=test --start_pos=4 --binlog_dir=/data/binlog/,/var/lib/mysql,/var/log/mysql --output_file=/tmp/save_binary_logs_test --manager_version=0.57 --binlog_prefix=mysql-bin

Thu Sep  7 16:43:54 2017 - [info] HealthCheck: SSH to 172.17.0.3 is reachable.

Monitoring server 172.17.0.2 is reachable, Master is not reachable from 172.17.0.2. OK.

Monitoring server 172.17.0.3 is reachable, Master is not reachable from 172.17.0.3. OK.

Thu Sep  7 16:43:57 2017 - [warning] Got error on MySQL connect: 2003 (Can't connect to MySQL server on '172.17.0.3' (111))

Thu Sep  7 16:43:57 2017 - [warning] Connection failed 2 time(s)..

ssh: connect to host 172.17.0.4 port 22: No route to host

Monitoring server 172.17.0.4 is NOT reachable!

Thu Sep  7 16:43:58 2017 - [warning] n.At least one of monitoring servers is not reachable from this script. This is likely a network problem. Failover should not happe


masterha_secondary_check -s 172.17.0.2 -s 172.17.0.3 -s 172.17.0.4 -s 172.17.0.5

上面服务器有一个网络不通了,就不能failover(有点坑)


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!