Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for determining master node and storage medium

A determination method and master node technology, applied in digital transmission systems, electrical components, transmission systems, etc., can solve problems such as reduced election efficiency and synchronization failure, and achieve the effect of reducing time delay and improving work efficiency

Active Publication Date: 2019-11-05
卓尔智联(武汉)研究院有限公司
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Frequent elections and random dormancy during the election process lead to a decrease in election efficiency and the problem that synchronization cannot be achieved

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for determining master node and storage medium
  • Method and device for determining master node and storage medium
  • Method and device for determining master node and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] In various embodiments of the present invention, when the third node determines that the first node meets the first preset condition and itself meets the second preset condition, it sends a first request message to at least one second node; the second node Be other nodes in the server cluster except itself; receive the first reply message sent by the at least one second node, and determine the standby master node according to the first reply message sent by the at least one second node; The master node sends a second request message, receives a second reply message sent by the standby master node, and determines the master node according to the second reply message. Correspondingly, the second node receives the first request message sent by the third node, determines the first reply message according to the first request message and the number of nodes in the server cluster, and sends the first reply message to the third node; receives the The second request message sen...

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 discloses a method for determining a master node, which comprises the following steps: when determining that a first node meets a first preset condition and meets a second preset condition, sending a first request message to at least one second node, and receiving a first reply message sent by the at least one second node, wherein the second nodes are other nodes except the second nodes in the server cluster; determining a preparation main node according to the first reply message sent by the at least one second node; and sending a second request message to the preparation main node, receiving a second reply message sent by the preparation main node, and determining the main node according to the second reply message. The invention further discloses a main node determining device and a storage medium.

Description

technical field [0001] The invention relates to a data synchronization technology in a fault-tolerant environment, in particular to a method, a device and a computer-readable storage medium for determining a master node. Background technique [0002] In the Raft distributed system, multiple nodes are used to improve the availability of the system. When one node fails, other nodes can replace it. The Raft distributed system includes nodes with three identities: Follower, Candidate and Leader. Among them, the Leader is the master node of the Raft distributed system, and the Follower is the slave node of the Raft distributed system. The existing Raft distributed system has the problem of frequent elections. Specifically, during the operation of the existing Raft distributed system, if the Follower does not receive the Leader's heartbeat signal, it will become a Candidate. A Candidate is a candidate node in the distributed system and will "pull votes" to other nodes. If most ...

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): H04L29/08H04L12/26
CPCH04L67/1095H04L43/10H04L67/1001
Inventor 吴良顺
Owner 卓尔智联(武汉)研究院有限公司