暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

万里数据库GreatDB集中式故障诊断:组复制问题处理-8

原创 Dbb 2024-03-01
339

集群初始化及脑裂问题-2

group_replication_bootstrap_group参数的作用是标记是不是初始化组复制集群,如果设置为 ON,则将以执行节点初始化一个全新的组复制集群。否则,如果设置为 OFF (默认值),该节点将尝试去加入到一个现有的组复制集群中。在上述示例中,因为无法连接到 33061,33062 的组复制端口,所以节点无法加入到一个现有组复制集群中(因为这样的集群不存在),所以启动失败。

[ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] Error on opening a connection to 127.0.0.1:33061 on local port: 33060.'
[ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] Error on opening a connection to 127.0.0.1:33062 on local port: 33060.'
[ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] Error connecting to all peers. Member join failed. Local port: 33060'
[ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] The member was unable to join the group. Local port: 33060'
[ERROR] [MY-011640] [Repl] Plugin group_replication reported: 'Timeout on wait for view after joining group'
[Note] [MY-011649] [Repl] Plugin group_replication reported: 'Requesting to leave the group despite of not being a member'
[ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] The member is leaving a group without being on one.'
复制

注意:当初始化节点启动组复制成功后,因立即将参数 group_replication_bootstrap_group 设置为 OFF。非初始化节点禁止设置参数为ON,否则会导致集群脑裂问题。如下示例可以看出,在相同的配置下,13000,和13001两个greatdb并没有出现在同一个组复制集群下。此时,可以认为是出现了脑裂的问题。因此,一定要注意 group_replication_bootstrap_group 参数的配置问题。

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

文章被以下合辑收录

评论