博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
MHA切换过程:
阅读量:7102 次
发布时间:2019-06-28

本文共 980 字,大约阅读时间需要 3 分钟。

1.监测master的状态Ping(SELECT) succeeded, waiting until MySQL doesn't respond..

2.当监控发现master异常时发出warning,并重试4次连接查询,并同时检查SSH状态。
3.读取配置文件,检查其他节点状态。
Reading configuration file /etc/masterha/masterha_default.conf and /etc/masterha/app1.conf again, and trying to connect to all servers to check server status..
经过双一轮检查,宣部master is down!

4.终止监控脚本Terminating monitoring script.

5.进入master failover进程:Starting master failover.(检查各节点状态,GTID based failover,Getting Latest Slaves Phase,)
Phase 1: Configuration Check Phase completed.
Phase 2: Dead Master Shutdown Phase completed.
Phase 3: Master Recovery Phase
Phase 3.1: Getting Latest Slaves Phase

Phase 3.3: Determining New Master Phase.

Phase 3.3: New Master Recovery Phase..(其实应该是3.4)

告知新节点环境binlog和position 并把new master 设置为Set read_only=0 on the new master.

完成master 迁移后,实现VIP迁移
Phase 4: Slaves Recovery Phase
Phase 4.1: Starting Slaves in parallel..

6.输出迁移报告:

----- Failover Report -----

转载于:https://www.cnblogs.com/2woods/p/9406737.html

你可能感兴趣的文章
ASP.NET26个性能优化方法
查看>>
dhtmlx Gantt实例介绍分析
查看>>
在 windows 环境下安装 redislive
查看>>
柯西-许瓦兹尔不等式
查看>>
vi查找替换命令详解
查看>>
GE SmartMeter串口接线笔记
查看>>
iOS开发--底层开发之越狱开发第一篇
查看>>
0020-求圆锥的体积
查看>>
逾期潮来了
查看>>
iOS主流机型更新
查看>>
iOS自动布局的学习
查看>>
单利模式
查看>>
BZOJ2521:[SHOI2010]最小生成树(最小割)
查看>>
将execl里的数据批量导入数据库
查看>>
DOM笔记(一):HTMLDocument接口
查看>>
[ios]ipad下的splitViewController 让你的APP看起来酷酷的!
查看>>
【SICP练习】47 练习2.6
查看>>
抓交通肇事犯
查看>>
ABAP程序系统字段中英文详解
查看>>
ruby 可枚举模块Enumerable
查看>>