Method for realizing serial heartbeat in high-availability cluster

A cluster and serial port technology, applied in the field of serial port heartbeat, can solve the problems that corosync cannot increase the network heartbeat, the cluster cannot work normally, and does not support the combination of two network heartbeats and one serial port heartbeat, etc.

Inactive Publication Date: 2012-07-04
CHINA STANDARD SOFTWARE
View PDF7 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] However, corosync cannot add more network heartbeats, so it does not support the combination of two network heartbeats and one serial port heartbeat
When the network environment fails, the nodes will not be able to transmit heartbeat information, making the cluster unable to work normally

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 for realizing serial heartbeat in high-availability cluster
  • Method for realizing serial heartbeat in high-availability cluster
  • Method for realizing serial heartbeat in high-availability cluster

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0032] Example: Suppose at a certain moment, the network cable on node 1 is pulled out.

[0033] Node 1 will activate the timer_function_netif_timeout_check function because it cannot receive the heartbeat information. The timer module will first call the netif_determine function to check the current network connection. Because the network cable is pulled out, the return value is 0, indicating that the network of this node has been interrupted. At this time, node 2 will also activate the timer_function_netif_timeout_check function because it cannot receive the heartbeat information. The timer module will first call the netif_determine function to check the current network connection. The return value is 1, indicating that the network of the peer node has been interrupted.

[0034]If the method described in the present invention is not used, node 1 will leave the original cluster due to network interruption, and re-bind the loopback IP address (127.0.0.1) to form a cluster with ...

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 discloses a method for realizing serial heartbeat in a high-availability cluster. The high-availability cluster is formed by network connection and serial cables, and provides services to outside by network heartbeat under common conditions. The method adopts a timer module; and the timer module monitors the state of the network environment by modifying a timer function for judging the fault of the network heartbeat in corosync, and uses the serial heartbeat to replace the network heartbeat in time when the network heartbeat is interrupted, so that the separation of nodes from the cluster due to network fault is avoided and the cluster can operate normally.

Description

technical field [0001] The invention relates to a method for realizing the heartbeat of a serial port in a high-availability cluster, in particular to a method for increasing the problem of redundant heartbeat in a high-availability cluster. Background technique [0002] High-availability cluster is a relatively common type of cluster. When hardware and software systems fail, the data running in the cluster system is not easy to lose, and can resume normal operation in the shortest possible time. [0003] Hierarchical architecture of high-availability clusters, from bottom to top: Messageing and Infrastructure Layer (information infrastructure layer), Membership member layer, Resource Allocation resource allocation layer, Resource Layer (resource layer). Among them, Messageing and Infrastructure Layer (information infrastructure layer) is a very important sublayer for transmitting heartbeat information. Pass the heartbeat, that is to say, each node will regularly notify oth...

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/24H04L12/26
Inventor 兰雨晴魏子然刘涛张永军夏颖
Owner CHINA STANDARD SOFTWARE
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
Try Eureka
PatSnap group products