Heartbeat realization method and device

An implementation method and technology of heartbeat cycle, applied in the field of storage, can solve the problems of delay in reading and writing heartbeat operations and inability to write, and achieve the effect of increasing the heartbeat cycle, reducing the frequency, and reducing CPU resources and IO.
CN106874103AActive Publication Date: 2017-06-20NEW H3C TECH CO LTD

Patent Information

Authority / Receiving Office
CN ยท China
Patent Type
Applications(China)
Current Assignee / Owner
NEW H3C TECH CO LTD
Publication Date
2017-06-20

Smart Images

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

Abstract

The application of the invention provides a heartbeat realization method and device, wherein the method comprises the following steps: executing a first heartbeat writing operation periodically according to a first value, wherein the first heartbeat writing operation is to write a sequence count value in a shared memory space; when detecting that the load of a node is overloaded, switching the node from the normal state to the abnormal state, stopping executing the first heartbeat writing operation, acquiring a newest sequence count value M of the first heartbeat writing operation, updating the heartbeat of the node periodically to a second value, wherein the second value is higher than the first value; periodically executing a second heartbeat writing operation according to the second value, and sending the written sequence count value to other nodes except the node, wherein the second heartbeat writing operation is to write the sequence count value to the node, and the initial value of the written sequence count value is M or M+1.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present application relates to the field of storage technologies, and in particular to a method and device for realizing heartbeat. Background technique

[0002] In a shared file system, multiple nodes (for example, hosts) form a cluster. All nodes in the cluster can access the same storage space. When any node reads and writes a file in the storage space, other nodes can still access the file. , nodes negotiate read and write permissions through distributed locks.

[0003] In the shared file system, the read-write heartbeat mechanism is used to determine whether the node is online. Specifically, in figure 1 The shared file system shown includes node 1 (node โ€‹โ€‹ID is 1), node 2 (node โ€‹โ€‹ID is 2) and node 3 (node โ€‹โ€‹ID is 3), these three nodes can access the same logical disk (or It is called a volume), and the read and write heartbeat operation is performed from the fixed base address position of the logical disk. For example, the base address posi...

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