Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Method of realizing heartbeat mechanism, apparatus and system thereof

A technology of heartbeat mechanism and corresponding relationship, applied in the computer field, can solve the problems of increased load of distributed database system, increase of heartbeat request and heartbeat response, etc., and achieve the effect of shortening fault detection time, reducing delay, and reducing the number of times.

Active Publication Date: 2017-07-07
HUAWEI TECH CO LTD
View PDF5 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, as the scale of the distributed database system becomes larger and larger, the number of nodes in a data synchronization unit increases. Therefore, the number of heartbeat requests and heartbeat responses sent between nodes increases significantly, resulting in an increase in the load of the entire distributed database system.

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
  • Method of realizing heartbeat mechanism, apparatus and system thereof
  • Method of realizing heartbeat mechanism, apparatus and system thereof
  • Method of realizing heartbeat mechanism, apparatus and system thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention.

[0035] In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the present invention, unless otherwise specified, "plurality" means two or more.

[0036]The core principle of the method for realizing the heartbeat mechanism provided by the embodiment of the present invention is: taking N nodes connected to one switching node (for example, switch or router) in the t...

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

An embodiment of the invention provides a method of realizing a heartbeat mechanism, an apparatus and a system thereof. A quantity of heartbeat responses sent by a node can be reduced so that unnecessary resource occupation cost in a distributed database system can be decreased. The scheme comprises the following steps that an exchange node acquires a heartbeat request sent by a first node to a second node, wherein the heartbeat request includes an identification of the first node and an identification of the second node; the exchange node records and receives a first moment of the heartbeat request; the exchange node inquires a second moment of receiving a second node sending message most recently by the exchange node in buffer memory information according to the identification of the second node, wherein the buffer memory information stores a corresponding relation of a moment for any one node to send a message and the identification of the node and the moment is received by the exchange node; and if an absolute value of a difference value between the first moment and the second moment is less than a threshold, the exchange node sends the heartbeat responses to the first node.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method, device and system for realizing a heartbeat mechanism. Background technique [0002] The heartbeat mechanism means that the sender regularly sends a custom heartbeat request (for example, a heartbeat packet or heartbeat frame), and the receiver sends a heartbeat response to the sender after receiving the structure, letting the sender know that the receiver is "online". to confirm that the receiving end is currently working normally. [0003] In a distributed database system, in order to improve the reliability of the system, multiple copies of data shards are saved. Multiple copies of the same data shard can be stored on different nodes. A group of nodes that store these multiple copies A data synchronization unit can be formed. In order to ensure the data consistency between these multiple copies, each node in the data synchronization unit can use a synchron...

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): H04L12/26H04L12/721H04L12/933H04L29/08
CPCH04L43/0823H04L43/10H04L45/44H04L49/103H04L67/10H04L67/145H04L67/60H04L47/822H04L67/568H04L67/51
Inventor 智雅楠程伟
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products