Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Raft-based hot standby multi-master method

A standby node and node technology, applied in the Internet field, can solve the problem of long leader selection time, and achieve the effect of reducing instability

Pending Publication Date: 2022-07-08
重庆趣链数字科技有限公司
View PDF8 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to solve the problem that the traditional leader election time is too long when the leader is down

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to further illustrate the technical means and effects adopted by the present invention to achieve the predetermined purpose of the invention, the specific embodiments, structures, features and effects of the present invention are described in detail as follows.

[0028] A Raft-based hot standby multi-master method, comprising the following steps:

[0029] Step S001, after completing the Leader election, select some standby Leader nodes from the node cluster, in this step, the Leader needs to evaluate each node situation in the node cluster, thereby selecting some nodes with the strongest communication delay and processing speed capability, The specific evaluation method and the steps for selecting a backup leader node are as follows:

[0030] Step a. Forcibly synchronize the log for each node in the node cluster, the leader evaluates the time T for each node in the node cluster to forcibly synchronize the log; the time T for the node to forcibly synchronize the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of Internet, and particularly discloses a Raft-based hot standby multi-master method. Comprising the following steps: step S001, after finishing Leader election, selecting a plurality of standby Leader nodes from a node cluster; step S002, identifying the selected standby Leader node, and marking the selected standby Leader node as a'standby node '; step S003, a plurality of standby node clusters are set as standby node clusters, and standby nodes in the standby node clusters are numbered in sequence in an incremental order; step S004, the selected standby Leader node is forced to be synchronized with the log; and step S005, when the Leader is crashed, the standby nodes vote according to the number sequence from small to large as the priority, and the problem that the master selection time is too long when the traditional Leader is crashed is solved.

Description

technical field [0001] The present application relates to the field of Internet technologies, and specifically discloses a Raft-based hot standby multi-master method. Background technique [0002] Raft is a simpler and easier-to-understand distributed algorithm, which mainly solves the consistency problem in distributed. Compared with the traditional Paxos algorithm, Raft decomposes a large number of computing problems into some simple relatively independent sub-problems. Raft achieves consistency by electing a leader by electing a leader, and then giving him all the responsibility for managing the replicated log. The leader receives log entries from clients, replicates the log entries to other servers, and tells other servers to apply the log entries to their state machines when security is assured. Having a leader greatly simplifies the management of replicated logs. [0003] In the original Raft consensus protocol, when the leader is down, the leader selection has a ran...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L67/1042H04L41/00H04L67/1095
CPCH04L67/1051H04L41/30H04L67/1095
Inventor 唐瑞琮郭颂曾磊曾巧
Owner 重庆趣链数字科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products