← 返回刚才阅读的位置

知识卡片

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

任期标明领导权世代

理解等级:中级

Raft 用递增任期标记选举。候选人发起新任期并争取多数,每个节点在同一任期最多投一票。节点发现更高任期会更新自己的任期,过期领导者不能继续在新任期取得接受。未及时收到心跳使跟随者开始选举,超时不是对物理宕机的证明。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Database Internals》Chapter 14. Consensus(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch14.html#raft,段 215) - 结论依据:原文强调任期逻辑编号、发现更高任期时更新、心跳与选举超时。 - 原始内容:It may happen that different participants disagree on which term is current, since they can find out about the new term at different times, or could have missed the leader election for one or multiple terms. Since each message contains a term identifier, if one of the participants