15. Consider a replica set with 5 healthy nodes and no arbiters. If the primary node in the set becomes unavailable, how many of the other nodes must be available to elect a new primary? Choose the best answer:
题目选项
- A.0
- B.1
- C.2
- D.3
- E.4
答案置信度:高
正确答案:D
解析语言:中文
无 arbiter 的 5 节点副本集投票权共 5 票,选出新 primary 需要多数派 3 票。primary 不可用后剩下 4 个节点中至少要有 3 个可达才能凑够多数派;只有 2 个可达时属于少数派,既不能选举也不能接受多数写。