当前位置:网站首页>Hashicorp/raft introduction and source code analysis (III): introduction to cluster node recovery
Hashicorp/raft introduction and source code analysis (III): introduction to cluster node recovery
2022-06-28 21:49:00 【fananchong2】
Cluster node recovery
In all cases , After re selecting the master successfully , backward follower Need to catch up leader The state of :
- follower It has landed log , Need proofreading . And leader inconsistent , Direct discarding
- follower From scratch , Or restore from the most recent local mirror , And catch up with the application log The state machine
We analyze several abnormal situations , How does the cluster automatically return to normal :
- 1 individual follower It's restarted , The follower How to finally make your state machine catch up leader
- leader It's restarted , And become follower, How to finally make your state machine catch up leader
- leader It's restarted , And reselect as leader , How to restore your state machine correctly
Scenario analysis 1 - follower restart
follower Restart actually has 2 In this case :
- No mirror
- Restore from mirror
In either case , Can get their own applyIndex applyTerm
then ,follower By appending the log protocol , hold applyIndex applyTerm, issue leader:
leader Will issue their own applyIndex and commitIndex , And according to follower Of applyIndex applyTerm , Issue follow-up log( Or mirror image + follow-up log)
- follower according to applyIndex Field , Know that you are behind leader How many? log
- follower according to commi
边栏推荐
- User network model and QoE
- Lumiprobe proteorange protein gel dye instructions
- How can the sports app keep the end-to-side background alive to make the sports record more complete?
- go-cryptobin 常用加密解密库
- Flask - Summary
- Lumiprobe non fluorescent alkyne research - dbco NHS ester
- Globalsign's Pan domain SSL certificate
- [book club issue 13] packaging format of video files
- 接口测试流程
- LeetCode188. The best time to buy and sell stocks IV
猜你喜欢

E-commerce is popular, how to improve the store conversion rate?

QJsonObject的使用示例

How to analyze the relationship between enterprise digital transformation and data asset management?
![[Note: circuit intégré MOS analogique] référence de bande Gap (principe de base + mode courant + circuit en mode tension)](/img/cd/be62272d465ca990456c222b38df67.png)
[Note: circuit intégré MOS analogique] référence de bande Gap (principe de base + mode courant + circuit en mode tension)
![[Note: analog MOS integrated circuit] bandgap reference (basic principle + current mode + voltage mode circuit explanation)](/img/cd/be62272d465ca990456c222b38df67.png)
[Note: analog MOS integrated circuit] bandgap reference (basic principle + current mode + voltage mode circuit explanation)

How do I download videos? Look at the super simple method!

16 `bs对象.节点名div.属性contents` children descendants 获取子节点 子孙节点

视频号如何下载视频?来看超简单方法!

零基础自学SQL课程 | SQL中的日期函数大全

安全 创新 实践|海泰方圆受邀参加“数字时代的网信创新与价值共创”技术交流研讨会
随机推荐
Binary tree problems
LeetCode560. 和为K的子数组
The rogue downloader named by 315 is back
Bitbucket failed to pull the warehouse Using SSH
Lumiprobe non fluorescent alkyne research - dbco NHS ester
Application of the purple book p113map of ananagrams (uva156)
安全 创新 实践|海泰方圆受邀参加“数字时代的网信创新与价值共创”技术交流研讨会
Multinomial distribution (a discrete distribution)
Survival of beaver: post-90s female doctors and AI developers
LeetCode123. The best time to buy and sell stocks III
Construction and application of urban brain knowledge map
Lua source code analysis: 1 Lua variable type mutability is implemented in C code.
LeetCode:二叉树展开为链表_114
Pie (poj3122) super detailed and easy to understand binary introduction
Lumiprobe protein labeling research scheme
为什么要使用 Rust 语言?
An artifact extracted from a well-known software and paid by a group of people
Is it safe to open an account on great wisdom
认识Web自动化测试
Comprehensive evaluation of easy-to-use and powerful PDF reading software: PDF expert, marginnote, liquidtext, notability, goodnotes, Zotero