知识卡片

普通读书笔记卡 · 10406.c.2.b.1 · 生成模型:未记录

租约读取要求时钟有界

理解等级:高级

老主可能还在工作,新主已经写入更新。若要让本地主直接服务线性一致的读,可用参与者在一段期间拒绝其他领导提议的租约。各方对到期时间必须有可验证的界限。若老主认为租约有效而其他节点认为已到期,读取就可能落后。

参见 [[稳定领导摊薄准备阶段]]。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Chapter 14. Consensus Multi-Paxos 的稳态与恢复 · 查看原书依据

      Leases are not a correctness guarantee, but a performance optimization that allows reads from the active leader without collecting a quorum. To guarantee safety, leases rely on the bounded clock synchrony between the participants. If their clocks drift too much and the leader assumes its lease is still

    参考来源

    - 位置:《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#multi_paxos,段 121) - 结论依据:原文指出本地读优化依赖时钟同步界限,漂移过大时线性一致性无法保证。 - 原始内容:Leases are not a correctness guarantee, but a performance optimization that allows reads from the active leader without collecting a quorum. To guarantee safety, leases rely on the bounded clock synchrony between the participants. If their clocks drift too much and the leader assumes its lease is still