开发者社区> 问答> 正文

Leader有哪些选举原则?

Leader有哪些选举原则?

展开
收起
张柠檬 2022-05-08 18:27:35 314 0
来自:阿里技术
1 条回答
写回答
取消 提交回答
  • 这样: Candidates include log info in RequestVote RPCs(index & term of last log entry) During elections, choose candidate with log most likely to contain all committed entries Voting server V denies vote if its log is “more complete”:(lastTermV > lastTermC) ||((lastTermV == lastTermC) && (lastIndexV > lastIndexC)) Leader will have “most complete” log among electing majority

    2022-05-08 18:58:41
    赞同 展开评论 打赏
问答地址:
来源圈子
更多
收录在圈子:
+ 订阅
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载