ZAB协议
2018-06-11 22:49:45 36 举报
ZAB协议算法图解
作者其他创作
大纲/内容
投票信息LeaderId:4zxid:[0|0]Status:Looking
zxid [0|0]
投票信息LeaderId:2zxid:[0|0]Status:Looking
zxid [0|1]
Prepare
Server-3Follower
事务01-Prepare
事务01-Commit事务01-Prepare
Server-1Looking
Server-2Looking
3
Server-1Follower
投票信息LeaderId:1zxid:[0|1]Status:Looking
Server-0Leader
投票信息LeaderId:2zxid:[0|1]Status:Looking
Req
Server-4Follower
zxid [1|0]
投票信息LeaderId:0zxid:[0|1]Status:Leading
b.2
投票信息LeaderId:1zxid:[0|0]Status:Looking
ACK
Server-3Looking
1
事务01-Commited事务01-Prepare
Server-2Follower
OR
投票信息LeaderId:3zxid:[0|0]Status:Looking
丢弃事务01
2
Server-0崩溃
Server-4Leader
投票信息LeaderId:0zxid:[0|1]Status:Following
Server-4Looking
Server-2Leader
Server-0Looking
0 条评论
下一页