知识卡片

普通读书笔记卡 · 2851.a.1.b

租约续期支撑长期所有权

理解等级:高级

一次设置很长TTL会延迟故障接管;短租约配合周期续期让健康持有者长期工作,又让失联后较快移交。续期必须验证当前持有版本,失败时停止依赖所有权的活动。提前在TTL一部分时续约只是留出时序余量,不是网络延迟或进程暂停的安全证明。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      Instead, we need to create a renewable lock, which can be periodically renewed by the owner so that the lock can be retained for an arbitrary period of time. We can extend the existing Lock that we defined previously to create a renewable lock, which enables

    参考来源

    - 位置:《Designing Distributed Systems, 2nd Edition》第10章《Chapter 10. Ownership Election》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch10.html) - 结论依据:原文对比一周TTL与可续约锁,并要求handleLockLost终止受保护活动。 - 原始内容:Instead, we need to create a renewable lock, which can be periodically renewed by the owner so that the lock can be retained for an arbitrary period of time. We can extend the existing Lock that we defined previously to create a renewable lock, which enables