Docs/数据库/mysql/MHA和MGR.md

14 lines
No EOL
839 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mha在所有mysql节点上安装mha node还需要安装mha managermha manager定时监控主节点的状态
从宕机崩溃的master保存二进制日志事件binlog events
识别含有最新更新的slave
应用差异的中继日志relay log到其他slave
应用从master保存的二进制日志事件binlog events
提升一个slave为新master
使用其他的slave连接新的master进行复制。
mgr支持单主和多主gtid相同
mgr使用至少3个节点三节点基于paxos协议同步paxos是多主节点的强一致性协议
paxos容忍少量节点宕机一半以上的节点收到日志主库才提交。
单主模式下主库宕机集群根据group_replication_member_weight设置的权重进行备机升主若权重相同根据Server的uuis排序