Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raft 学习历程(WIP) #23

Open
wisecsj opened this issue Sep 7, 2020 · 2 comments
Open

Raft 学习历程(WIP) #23

wisecsj opened this issue Sep 7, 2020 · 2 comments

Comments

@wisecsj
Copy link
Owner

wisecsj commented Sep 7, 2020

Raft的几大属性:

  1. Log Matching Property
  2. Leader Completeness Property
@wisecsj
Copy link
Owner Author

wisecsj commented Sep 7, 2020

第一步:对raft有个大致的了解,相关概念的熟悉

直接阅读raft paper:https://raft.github.io/raft.pdf

https://github.com/maemual/raft-zh_cn/blob/master/raft-zh_cn.md

以下是对部分section的简要意译

@wisecsj
Copy link
Owner Author

wisecsj commented Sep 7, 2020

5.4 Safety

5.4.1 选举的一些限制

leader需要包含所有已经提交的log entries,所以为了避免被选举出的leader还需要去follower拉更新的log entry,再投票时,raft限制了只有candidate至少比自己新,才会把票投给它

5.4.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant