故障处理:
解决:搭建MGR过程中,涉及到了 Group Replication IP Address Whitelisting,默认情况下,
是无法让本地网络外的连接的访问的,所以在跨机器、网段、机房的情况下,需要设置
group_replication_ip_whitelist
例如:
select * from performance_schema.replication_group_members;
mysql> STOP GROUP_REPLICATION;
mysql> SET GLOBAL group_replication_ip_whitelist="192.168.1.51,192.168.1.52,192.168.1.53";
mysql> START GROUP_REPLICATION;
很多警告:
2022-01-25T08:00:58.132013Z 0 [Warning] Plugin group_replication reported: '[GCS] Unable to handle socket descriptor, therefore refusing connection.'
2022-01-25T08:00:58.132119Z 0 [Warning] Plugin group_replication reported: '[GCS] Invalid IPv4/IPv6 address. Refusing connection!'
2022-01-25T08:00:58.132138Z 0 [Warning] Plugin group_replication reported: '[GCS] Unable to handle socket descriptor, therefore refusing connection.'
2022-01-25T08:00:58.132153Z 0 [Warning] Plugin group_replication reported: '[GCS] Connection attempt from IP address 0.0.0.0 refused. Address is not in the IP whitelist.'
mysql> STOP GROUP_REPLICATION;
mysql> SET GLOBAL group_replication_ip_whitelist="192.168.1.51,192.168.1.52,192.168.1.53,0.0.0.0";
mysql> START GROUP_REPLICATION;
set global group_replication_bootstrap_group=off;
stop group_replication;
start group_replication;
select * from performance_schema.replication_group_members;