开发者社区 问答 正文

Leader有哪些选举原则?

Leader有哪些选举原则?

展开
收起
张柠檬 2022-05-08 18:27:35 349 分享 版权
来自: 阿里技术
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
    赞同 展开评论
问答地址: