MIT6.824 Lecture 05 Raft part1

课程总结

容错次数 2f + 1, f个fail了,还有大多数

架构

 

log entry contain command term and leader's team

raft有一些错误是靠发出请求端重试来弥补的 

这张图要搞懂哦。。。。。。。。

raft动画总结

1.一个node有3个状态 follower, candiate, leader 

2. 两个超时First is the election timeout.The election timeout is the amount of time a follower waits until becoming a candidate.The election timeout is randomized to be between 150ms and 300ms.After the election timeout the follower becomes a candidate and starts a new election term...Raft 中有两个控制选举的超时设置,第一个是选举超时时间(election timeout),另一个是心跳超时时间(heartbeat timeout)。 Leader 发送心跳消息是以心跳超时指定的时间间隔进行的,也就是根据heartbeat timeout 发送心跳信息。

3.uncommited,但网络分区结束后可能会roll back

因为动画很简洁,就不打算记录了,直接看动画吧orz

墙裂推荐阅读下面的参考资料,复习时要记得看啊

参考资料:Raft

                轻松理解CAP理论,面试必问,你搞清楚了吗? - 掘金

                终于明白了,一文搞懂Raft协议 - 掘金

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值