Method for switching leader node of raft distributed system, device and system
A technology of distributed system and leader node, applied in the field of switching the leader node of raft distributed system, to save the time of re-election, maintain continuity, and save the time of election
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0028] see figure 1 , figure 1 A flow chart for the data write operation of the raft algorithm, which can include:
[0029] Step S101, after the leader receives the log to be written, it copies the log, and then sends the log to other nodes (ie, Followers);
[0030] Step S102, Follower stores the received log in the local log;
[0031] The above step S102 may also be referred to as log persistence;
[0032] Step S103, the Follower returns a response message to the leader after the log is persisted;
[0033] In step S104, after receiving the response messages of most of the followers, the leader determines that most of the followers have completed the log persistence and the write operation.
[0034] see figure 2 , figure 2 The data read operation flow chart for the raft algorithm, which can include:
[0035] Step S201, the leader receives a data read command;
[0036] Step S202, the leader obtains the data corresponding to the read command, and sends the data.
[00...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com