码迷,mamicode.com
首页 > 其他好文 > 详细

why is agreement hard in a distributed system?

时间:2014-11-16 08:15:30      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:des   io   ar   os   sp   for   on   art   bs   

same question as:

why is PAXOS necessary?

 

1, what if >1 nodes become leaders simultaneously?

that‘s why we need phase#1 (prepare) to select a leader.

2, what if there is a netwrok partition?

that‘s why we need a majority to make some nodes progress. if less than majority, just fails.

3, what if a leader crashes in the middle of solicitation?

4, what if a leader crashes after deciding but before announcing results?

5, what if the new leader proposes different values than already decided value?

that‘s why we need ballot number (made up of a unique increasing number and the processor id) so that any processor is likely to be a new leader.

why is agreement hard in a distributed system?

标签:des   io   ar   os   sp   for   on   art   bs   

原文地址:http://www.cnblogs.com/miaoz/p/4100961.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!