doc: 阅读mysql group replication文档

This commit is contained in:
wu xiangkai
2025-10-17 16:28:38 +08:00
parent 274f7b6c62
commit ad29dddc5f

View File

@@ -242,4 +242,8 @@ group members不仅需要对事务的提交达成一致也需要对当前的v
通过`group_replication_member_expel_timeout`的system variable引入了一个waiting period允许members该时间内重新连接到group从而避免被从group中驱逐。如果member在该时间范围内重新连接到了group那么该member可以重新在group中处于活跃状态。但是当member超过expel timeout并且从group中被驱逐时或通过`STOP GROUP_REPLICATION`语句停止group replication时或server failure时其必须作为新的实例加入到group中。 通过`group_replication_member_expel_timeout`的system variable引入了一个waiting period允许members该时间内重新连接到group从而避免被从group中驱逐。如果member在该时间范围内重新连接到了group那么该member可以重新在group中处于活跃状态。但是当member超过expel timeout并且从group中被驱逐时或通过`STOP GROUP_REPLICATION`语句停止group replication时或server failure时其必须作为新的实例加入到group中。
### Failure detection ### Failure detection
group replication failure detection mechanism是一个分布式的service用于检测group中server没有和其他servers沟通的情况从而判定该server有停止服务的嫌疑。如果在group的共识中该嫌疑为true那么group将会做出协调一致的决定将该member逐出group。 group replication failure detection mechanism是一个分布式的service用于检测group中server没有和其他servers沟通的情况从而判定该server有停止服务的嫌疑。如果在group的共识中该嫌疑为true那么group将会做出协调一致的决定将该member逐出group。
将不参与communicating的member驱逐出group是必要的因为group在对transaction或view change需要majority of members达成一致。如果member不参与这些决策group必须对member进行移除从而增加group中包含majority of correctly working members的可能性从而能够继续处理transactions。
在replication group中每两个member间都有一个point-to-point的communication channel从而形成了一个full connected graph。这些连接通过group communication engineXCom, a Paxos variant来进行管理来凝结使用TCP/IP sockets。