5.MGR组复制故障处理-IP没有在白名单中

在搭建MGR时遇到GroupReplicationIPAddressWhitelisting限制,导致跨机器或网段连接失败。通过设置group_replication_ip_whitelist添加允许的IP地址(如192.168.1.51,192.168.1.52,192.168.1.53)并处理警告,尝试解决无法连接的问题。但设置0.0.0.0可能导致额外警告,可能需要进一步调试配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

故障处理:
解决:搭建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;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值