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

Host node state determination method and device, host node and storage medium

A technology for determining node status and methods, applied in digital transmission systems, electrical components, transmission systems, etc., can solve problems such as cluster confusion, storage data loss, server downtime, etc., and achieve the effect of avoiding cluster chaos

Active Publication Date: 2019-02-01
NEW H3C CLOUD TECH CO LTD
View PDF6 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the host node mounts the file system, it will first periodically write the node heartbeat record of the host node to the storage device. When the number of successful writes reaches the preset threshold, the host node is considered to be stable. At the same time, The host node will also periodically read the node heartbeat records of other host nodes in the host cluster except the host node from the storage device. If the values ​​of the node heartbeat records read in two cycles are different, the The host node is in the active state. If the values ​​of the node heartbeat records read in two cycles are the same, the host node is considered to be in the dead state. However, if the host node has a short-term storage link failure or other abnormalities, simply Judging that the host node is in the dead state based on the difference in the node heartbeat records of the two cycles will cause the host node that mounts the file system to think that the host node is dead and will not send a request to join the host cluster to the host node. When other host nodes are mounting At the same time, it is found that the host node is in the active state, so it sends a request to join the host cluster to the host node, and finally makes different host nodes in the entire host cluster perceive that the states of the member host nodes in the host cluster are inconsistent, which eventually leads to cluster chaos, Fatal problems such as server downtime or even storage data loss

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
  • Host node state determination method and device, host node and storage medium
  • Host node state determination method and device, host node and storage medium
  • Host node state determination method and device, host node and storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0030] Please refer to image 3 , image 3 A flow chart of a method for determining a state of a host node provided by an embodiment of the present invention is shown, which is applied to a first host node in a host cluster. The processing method includes the following steps:

[0031] Step S101 , according to the preset detection cycle, acquire the node heartbeat record of the second host node in the current detection cycle and the mounting signature of the second host node in the current detection cycle from the storage device.

[0032] In the embodiment of the present invention, the preset detection cycle refers to the preset cycle of obtaining the host node heartbeat record and mount signature of the second host node from the storage device 400, and it is also the period when the first host node writes the host node heartbeat to the storage device 400. Period for recording and mounting signatures. The first host node can mount the file system by executing the mount comma...

no. 2 example

[0068] Please refer to Figure 6 , Figure 6 A schematic block diagram of an apparatus 200 for determining a host node state provided by an embodiment of the present invention is shown. The apparatus 200 for determining the state of a host node is applied to the host node 100 , and includes an acquisition module 201 and a judgment module 202 .

[0069] The obtaining module 201 is configured to obtain the node heartbeat record of the second host node in the current detection cycle and the mounting signature of the second host node in the current detection cycle from the storage device according to the preset detection cycle.

[0070] In the embodiment of the present invention, the acquiring module 201 is configured to execute step S101.

[0071]The judging module 202 is configured to judge the state of the second host node according to the consistency of the node heartbeat records of the second host node in this detection period, and based on the mounting status indicated by ...

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 a host cluster, and provides a host node state determination method and device, a host node and a storage medium. The method comprises the steps of: acquiring a current detection period node heartbeat record of a second host node and a current detection period mounting signature of the second host node from a storage device according to a preset detection period; and according to consistency of the current detection period node heartbeat record of the second host node and on the basis of a mounting state indicated by the current detection periodmounting signature, determining a state of the second host node. According to the invention, the host node which is really in a dead state is determined by the node heartbeat record and the mounting signature, and the preset stable period is prolonged to implement accurate determination on the state of the host node so as to ensure that when each host node mounts a file system, states of member host nodes, which are sensed by the host node, are consistent, thereby avoiding the fatal problems of cluster disorder, server breakdown, even storage data loss and the like which are caused by inconsistency of the states.

Description

technical field [0001] The present invention relates to the technical field of host clusters, in particular to a method and device for determining the state of a host node, a host node and a storage medium. Background technique [0002] Multiple host nodes in the same host cluster can mount the same shared file system at the same time. When any host node in the host cluster operates on a specified file in the mounted file system, the mount includes the specified Other host nodes of the file can perceive the operation result of this operation. When the host node mounts the file system, it will first periodically write the node heartbeat record of the host node to the storage device. When the number of successful writes reaches the preset threshold, the host node is considered to be stable. At the same time, The host node will also periodically read the node heartbeat records of other host nodes in the host cluster except the host node from the storage device. If the values ​...

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/26
CPCH04L43/0817H04L43/10H04L67/1044
Inventor 张端
Owner NEW H3C CLOUD 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