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.
CN112367198BActive Publication Date: 2022-07-01NEW H3C BIG DATA TECH CO LTD

Patent Information

Authority / Receiving Office
CN ยท China
Patent Type
Patents(China)
Current Assignee / Owner
NEW H3C BIG DATA TECH CO LTD
Publication Date
2022-07-01

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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