大网数据广告活动
服务器运维问答

How likely is a Split Brain situation when dealing with Galera clusters?

· 52CE 我爱测

Assuming I have a server setup where a quorum vote is always satisfied, how likely will a Split Brain situation occur with Galera? My understanding is Galera does its best to avoid it, but does that mean there's 0 chance of it ev…

问题原文

原帖链接 · Phil · CC BY-SA 4.0

Assuming I have a server setup where a quorum vote is always satisfied, how likely will a Split Brain situation occur with Galera? My understanding is Galera does its best to avoid it, but does that mean there's 0 chance of it ever happening if the servers and MySQL/MariaDB processes never fail?

If it's a real possibility, is there a best practice for proper recovery?

已采纳解答

原帖链接 · Rick James · CC BY-SA 4.0

I assume you have a 3-node system with no weightings and the nodes are in separate geographical locations?

Split brain usually happens when these two things occur:

  1. One node dies, and before you can get it repaired,...
  2. The network between the two other nodes dies. Now neither of those nodes will accept writes because neither has a quorum.

Hence no "split brain", but instead a read-only system.

The simple answer is that "quorum" prevents "split brain".

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-03-04)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。