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

State checking method and device and cluster system

A status check and status technology, applied in the computer field, can solve the problems of misjudgment as failure and failure to judge failure in time, and achieve the effect of avoiding delay, reducing overhead, avoiding delay and false alarm

Active Publication Date: 2019-04-05
ALIBABA GRP HLDG LTD
View PDF14 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] Availability detection will be affected by the current business status of the Redis service. For example, when the Redis service is busy (for example, when executing a task with a long time), the Redis service node cannot respond to the detection command or heartbeat message in time, and it is easy to be misjudged as fault, or failure to judge the fault in time

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
  • State checking method and device and cluster system
  • State checking method and device and cluster system
  • State checking method and device and cluster system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0067] Embodiment 1. A state inspection method, such as figure 1 As shown, including steps S110-S120:

[0068] S110, after the main thread is started, create a status checking thread;

[0069] S120. After the node executing the main thread receives the message for state detection, the state checking thread feeds back the message for state detection.

[0070] In this embodiment, the node will include a main thread for processing business requests, and a status inspection thread for responding to status detection; the status inspection thread is independent of the main thread for business processing, so it will not be affected by business conditions. Impact.

[0071] In the conventional scheme, the main thread should take into account both business processing and availability detection, and the business processing and availability detection requests are arranged in the same queue, waiting for the processing of the main thread; in this way, when the business is busy, if there a...

Embodiment 2

[0155] Embodiment 2. A status checking device, comprising: a processor and a memory;

[0156] The memory is used to store a program for providing services; when the program for providing services is read and executed by the processor, the following operations are performed:

[0157] Start the main thread;

[0158] When the main thread starts to be executed by the processor, the following operations are performed:

[0159] Create a status check thread;

[0160] When the state checking thread is executed by the processor, the following operations are performed:

[0161] After the node where the processor is located receives the message for state detection, it feeds back the message for state detection.

[0162] In an implementation manner, the node where the state inspection device is located, or the node where the processor is located may be the master node of the cluster.

[0163] In this implementation manner, the cluster may be, but not limited to, a Redis cluster.

[0...

Embodiment 3

[0179] Embodiment 3. A state inspection device, such as Figure 4 shown, including:

[0180] The main service module 31 is used to create a status checking module 32 after startup;

[0181] The status inspection module 32 is configured to feed back the message for status detection when the node where the status inspection device is located receives the message for status detection.

[0182] In an implementation manner, the node where the status check device is located may be the master node of the cluster.

[0183] In this implementation manner, the cluster may be, but not limited to, a Redis cluster.

[0184] In an implementation manner, the status check module may also be used to listen to a status check port of the execution node; wherein the status check port is used to receive the message for status detection.

[0185] In an implementation manner, the feedback of the state inspection module on the message for state detection may include:

[0186] The status checking m...

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 provides a state checking method and device and a cluster system. The state checking method includes the following steps: a state checking thread is created after a main thread is started; and after a node executing the main thread receives a message for state detection, the state checking thread gives a feedback to the message for state detection. The at least one embodiment of the application can avoid the impact of service conditions on the availability detection results.

Description

technical field [0001] The invention relates to the field of computers, in particular to a state checking method, device and cluster system. Background technique [0002] The availability of a computer system is measured by the reliability and maintainability of the system. In engineering, the mean time between failures is usually used to measure the reliability of the system, and the mean time to repair is used to measure the maintainability of the system. [0003] Currently, high availability of services is usually implemented by building a high availability (High Availability, HA) cluster. HA may refer to the ability of a program, or service, or system to perform its functions without interruption. [0004] A high-availability cluster (also known as HA cluster) includes multiple service nodes, some service nodes are in the active state of the business (can be called the primary node), and some service nodes are in the standby state of the business (can be called the sta...

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/26H04L29/08
CPCH04L43/0817H04L43/10H04L67/10
Inventor 鲁振华
Owner ALIBABA GRP HLDG 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