知识卡片
复制组充当提交参与者
在 Spanner 中,每个分片是一个由多个副本组成的 Paxos 组。跨分片事务的 2PC 对接各组的领导者,准备及提交状态由各组复制。组内个别副本下线时,若仍可形成法定人数,组仍有能力参与;任何整个参与组不可用时,全员同意的约束仍成立。
参见 [[两阶段提交全员同意]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 13. Distributed Transactions Spanner 的三种职责 · 查看原书依据
For multishard transactions, group leaders have to coordinate and perform a two-phase commit to ensure consistency, and use two-phase locking to ensure isolation. Since the 2PC algorithm requires the presence of all participants for a successful commit, it hurts availability. Spanner solves this by using Paxos groups rather
参考来源
- 位置:《Database Internals》Chapter 13. Distributed Transactions(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch13.html#spanner,段 90)
- 结论依据:原文明确以 Paxos 组取代单个节点作为参与者,降低个别副本故障对 2PC 的影响。
- 原始内容:For multishard transactions, group leaders have to coordinate and perform a two-phase commit to ensure consistency, and use two-phase locking to ensure isolation. Since the 2PC algorithm requires the presence of all participants for a successful commit, it hurts availability. Spanner solves this by using Paxos groups rather