知识卡片

普通读书笔记卡 · 10408.e · 生成模型:未记录

多数票与过期领导者

理解等级:高级

各分区若仅按局部排名或可见成员选举,可能各自选出一位领导者。全集群多数派通过相交限制同一轮中的独立胜出。角色自认仍可能过期,Raft 用任期发现更新的领导者,Multi-Paxos 用提案和法定人数保证冲突发起者不能决定不同结果。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Chapter 10. Leader Election Summary · 查看原书依据

      Unfortunately, all the algorithms we’ve discussed in this chapter are prone to the split brain problem: we can end up with two leaders in independent subnets that are not aware of each other’s existence. To avoid split brain, we have to obtain a cluster-wide majority of votes.

    参考来源

    - 位置:《Database Internals》Chapter 10. Leader Election(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch10.html#idm46104530534040,段 70) - 结论依据:原文分别说明多数派选择及两个共识算法的冲突解决。 - 原始内容:Unfortunately, all the algorithms we’ve discussed in this chapter are prone to the split brain problem: we can end up with two leaders in independent subnets that are not aware of each other’s existence. To avoid split brain, we have to obtain a cluster-wide majority of votes.