引言
MySQL Group Replication
(简称MGR
)是MySQL官方于2016年12月份推出的一个全新的高可用与高扩展的解决方案。MGR
提供了高可用,高扩展、高可靠的MySQL
集群服务。MGR
是MySQL
数据库未来发展的一个重要方向。
场景描述
操作系统 | MySQL版本 |
---|
CentOS Linux release 7.3.1611 | MySQL5.7.20 二进制 |
IP地址 | hosts | port |
---|
192.168.74.134 | mgr-node1.up.com | 330623306 |
192.168.74.135 | mgr-node2.up.com | 330623306 |
192.168.74.136 | mgr-node3.up.com | 330623306 |
一个已经运行很久的MGR
集群,以single-master
模式运行(单主模式),binlog
过期策略为7天。
Key | Value |
---|
enforce_gtid_consistency | ON |
master_info_repository | TABLE |
relay_log_info_repository | TABLE |
binlog_checksum | NONE |
log_slave_updates | ON |
binlog_format | ROW |
==expire_logs_days== | ==7== |
- 需求描述
因为不可抗力的因素 mgr-node3.up.com
节点永久性的down 并且无法恢复,或者mgr-node3.up.com
宕机超过时间7day,