当前位置:网站首页>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
边栏推荐
- Is it safe to open a stock trading account? Is it reliable?
- 接口测试流程
- Construction and application of urban brain knowledge map
- Understanding of incomplete types
- LeetCode1114. 按序打印
- Pyechart drawing multiple Y-axis line graphs
- Go cryptobin common encryption and decryption Libraries
- 开通股票炒股账号安全吗?是靠谱的吗?
- 二叉树类题目 力扣
- LeetCode986. 区间列表的交集
猜你喜欢

Biovendor free light chain( κ and λ) Test steps of ELISA Kit
![[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)

Bitbucket failed to pull the warehouse Using SSH

Ehcache configuration data, convenient for self checking

User network model and QoE

AI deep dive of Huawei cloud

Lumiprobe non fluorescent alkyne research - dbco NHS ester

Survival of beaver: post-90s female doctors and AI developers

Pyechart drawing multiple Y-axis line graphs

力扣树的进一步应用
随机推荐
Mongodb - replica set and sharding
17 `bs object Node name h3 Parent ` parents get parent node ancestor node
Can you make money by speculating in stocks? It's safe to open an account
Bitbucket 使用 SSH 拉取仓库失败的问题
Pie (poj3122) super detailed and easy to understand binary introduction
How to analyze the relationship between enterprise digital transformation and data asset management?
Lumiprobe lumizol RNA extraction reagent solution
Go cryptobin common encryption and decryption Libraries
Leetcode daily question - Sword finger offer II 091 Paint the house
LeetCode:合并两个有序链表_21
Understanding of incomplete types
How to make up the PMP Exam? How much is the make-up exam?
Application of the purple book p113map of ananagrams (uva156)
Leetcode56. consolidation interval
LeetCode877. Stone game
Is the rapid SSL wildcard certificate genuine in 1981
安全 创新 实践|海泰方圆受邀参加“数字时代的网信创新与价值共创”技术交流研讨会
LeetCode116. Populate the next right node pointer for each node
GlobalSign的泛域名SSL证书
Safety innovation practice | Haitai Fangyuan was invited to participate in the technical exchange Seminar on "network information innovation and value co creation in the digital age"