Article · 中文
二阶段提交(英語:Two-phase Commit)是指在计算机网络以及数据库领域内,为了使基于分布式系统架构下的所有节点在进行事务提交时保持一致性而设计的一种演算法。通常,二阶段提交也被称为是一种协议(Protocol)。在分布式系统中,每个节点虽然可以知晓自己的操作时成功或者失败,却无法知道其他节点的操作的成功或失败。当一个事务跨越多个节点时,为了保持事务的ACID特性,需要引入一个作为协调者的组件来统一掌控所有节点(称作参与者)的操作结果并最终指示这些节点是否要把操作结果进行真正的提交(比如将更新后的数据写入磁盘等等)。因此,二阶段提交的算法思路可以概括为: 参与者将操作成败通知协调者,再由协调者根据所有参与者的反馈情报决定各参与者是否要提交操作还是中止操作。 需要注意的是,二阶段提交(英語:2PC)不应该与并发控制中的二阶段锁(英語:2PL)混淆。
Abstract from DBpedia / Wikipedia · CC BY-SA
Connections
computer network
Entity
transaction processing
Entity
International Standard Book Number
Entity
database
Entity
Wayback Machine
Entity
data structure
Entity
tree
Entity
node
Entity
logging
Entity
The Open Group
Entity
consensus
Entity
Two Generals' Problem
Entity
concurrency control
Entity
commitment scheme
Entity
two-point conversion
Entity
write-ahead logging
Entity
X/Open XA
Entity
Paxos
Entity
two-phase locking
Entity
distributed algorithm
Entity