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

Optimization processing method for raft in point-to-point failure

A processing method, point-to-point technology, applied in the field of distributed systems, to avoid circular elections and reduce system overhead

Active Publication Date: 2020-08-25
广州锦行网络科技有限公司
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0016] 1. If in the current cluster, the communication between the leader node and a follower node fails, but the communication between other follower nodes and between the leader node and other follower nodes is normal, then there will be communication between the two nodes involved in the communication failure. Round-robin elections, generating unnecessary system overhead

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
  • Optimization processing method for raft in point-to-point failure
  • Optimization processing method for raft in point-to-point failure

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0062] The present invention provides a raft optimization processing method when a point-to-point failure occurs. The point-to-point failure is a communication failure between the leader node and a follower node in the cluster, and the leader node and other follower nodes and all Communication between follower nodes is normal. The following example takes a distributed cluster with 5 nodes as an example. The leader node is leader a, and the follower nodes are follower b, follower c, follower d, and follower e respectively. At this time, the tenure of each node The terms are assumed to be 3, that is, term=3. A communication failure occurs between the leader node leader a and the follower node follower b, combined below figure 2 The method is described in detail, and the method includes the following steps:

[0063] S1: The leader node leader a sends heartbeat packets to all follower nodes follower b, follower c, follower d and follower e;

[0064] S2: The following node follo...

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 provides an optimization processing method for raft when a point-to-point fault occurs, and relates to the field of distributed systems. The method comprises the following steps: S1, enabling a leader node to send heartbeat packets to all following nodes; S2, determining the following node which cannot receive the heartbeat packet of the leader node in an overtime manner as the following node involved in the fault; S3, enabling the following node related to the fault determined in the S2 to send a message to other following nodes to inquire the state of the leader node; S4, enabling the following node receiving the inquiry message to detect the state of the leader node; S5, enabling the following node receiving the inquiry message to send a message containing the state of theleader node to the following node involved in the fault; S6, enabling the following node involved in the fault to initiate election or not to initiate election according to the received message. According to the invention, the problem of cyclic election of two nodes related to a fault during a point-to-point fault is avoided.

Description

technical field [0001] The invention relates to the field of distributed systems, in particular to a raft optimization processing method when a point-to-point fault occurs. Background technique [0002] With the development of big data, the load of major websites is getting higher and higher. In this case, it is necessary to increase the bearing capacity of the server. Generally, there are two ways to solve the problem of improving the carrying capacity: one is to upgrade the server; the other is to increase the server. Adding servers refers to server clusters, so that new servers can be dynamically added to the cluster, which is more convenient for management; at the same time, servers can communicate with each other, and it has a monitoring mechanism. If one server fails, another The server takes over automatically, with high fault tolerance. In a distributed system, work tasks can be distributed to multiple servers that can be used in the most effective way, which impro...

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
IPC IPC(8): H04L29/08H04L12/24
CPCH04L41/0631H04L41/0654H04L67/10
Inventor 马俊
Owner 广州锦行网络科技有限公司