知识卡片
一次写寄存器表示定值
在每个节点布置有序编号、只能写一次的寄存器。同编号在多个节点形成一组。客户端可给旧空槽写入 nil 来禁止后写,读到的非空历史约束下一提议,只有读回一个法定集合的同值才可输出决定。这是把承诺与值继承改写为状态约束的思考方法。
参见 [[承诺屏蔽旧编号]]。
参见 [[继承最高编号接受值]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 14. Consensus 用一次写寄存器重述共识 · 查看原书依据
The writing rules are slightly more involved because to guarantee algorithm safety, we have to preserve several invariants. First, we have to make sure that the client doesn’t just come up with new values: it is allowed to write a specific value to the register only if it
参考来源
- 位置:《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#idm46104529066328,段 190)
- 结论依据:原文给出寄存器三种状态、法定集合的四种判断及不会覆盖更早决定的规则。
- 原始内容:The writing rules are slightly more involved because to guarantee algorithm safety, we have to preserve several invariants. First, we have to make sure that the client doesn’t just come up with new values: it is allowed to write a specific value to the register only if it