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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com