首页 > 代码库 > why is agreement hard in a distributed system?
why is agreement hard in a distributed system?
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?
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。