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

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.

Active Publication Date: 2017-06-20
NEW H3C TECH CO LTD
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In the above-mentioned read-write heartbeat mechanism, when the node load is heavy, it may cause a delay in the read-write heartbeat operation, especially the delay in the write heartbeat operation. For example, the process of writing the sequence count value to the logical disk Slow, unable to write in, etc.

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
  • Heartbeat realization method and device
  • Heartbeat realization method and device
  • Heartbeat realization method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.

[0027] The terminology used in this application is for the purpose of describing particular embodiments only, and is not intended to limit the application. As used in this application and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term...

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 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.

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50H04L29/08G06F17/30
CPCG06F9/505G06F9/5088G06F16/176G06F16/183G06F16/188G06F2209/5022H04L67/1001
Inventor 钟晋明
Owner NEW H3C 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