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

Active-standby node switching method and device

A technology of active-standby switching and standby nodes, applied in the field of communication, can solve problems such as split-brain, avoid split-brain and improve user experience.

Active Publication Date: 2022-07-01
NEW H3C BIG DATA TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In this related technology, when the heartbeat line between the active node and the standby node is disconnected, but both the active node and the standby node can ping the arbitration node, the standby node will also be switched to the active node, resulting in split brain
In addition, the system using this related technology also has the possibility of split brain in other situations

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
  • Active-standby node switching method and device
  • Active-standby node switching method and device
  • Active-standby node switching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numerals in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with some aspects of embodiments of the invention as recited in the appended claims.

[0041] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments of the present invention, and are not intended to limit the embodiments of the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as wel...

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

Embodiments of the present invention provide a method and device for switching between active and standby nodes. In the embodiment of the present invention, the cluster node does not receive the heartbeat detection signal from the opposite node within the first specified time after sending the heartbeat detection signal to the opposite node in the same cluster. When the signal returns a heartbeat detection response, send the current timestamp information to the specified device, and determine whether the timestamp list returned by the specified device is received within the second specified time after sending the current timestamp information. If not, the cluster node is the master node. When the cluster node is switched from the master node to the standby node, when the cluster node is the standby node, keep the cluster node as the standby node; if so, determine the peer node according to the latest timestamp of the peer node recorded in the timestamp list If it is abnormal, when the cluster node is the master node, the cluster node is maintained as the master node, and when the cluster node is the backup node, the cluster node is switched from the backup node to the master node, which avoids the occurrence of split-brain and improves the user experience.

Description

technical field [0001] The present invention relates to the field of communication technologies, and in particular, to a method and device for switching between active and standby nodes. Background technique [0002] In a distributed system, the primary node and the standby node are mostly built in the cluster to improve the High Availability (HA) capability of system services, but the split-brain (split- brain) risk. [0003] Split-brain refers to the fact that in a system, when two connected nodes are disconnected, the original system as a whole is split into two independent nodes. At this time, the two nodes begin to compete for shared resources, resulting in the system Confusion, data corruption. In essence, the state of split-brain is that there are two or more master nodes in a cluster, as if one human brain has split into multiple brains, commanding chaos. [0004] Split-brain is catastrophic for service availability, so it needs to be strictly guarded against and ...

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 Patents(China)
IPC IPC(8): H04L41/0816H04L43/10H04L43/106
CPCH04L41/0816H04L43/10H04L43/106
Inventor 张锐
Owner NEW H3C BIG DATA TECH CO LTD
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