Disaster-tolerant method, device and machine-readable medium of cluster system
A cluster system and disaster recovery technology, which is applied to the generation of instruments, response errors, and fault handling not based on redundancy, etc., can solve problems such as data corruption, split brain, etc., and achieve the effect of improving stability and reliability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
application example 1
[0098] In application example 1, the detected node can be a working node, and the detection node can be a control node. Refer to Figure 4 , which shows a flow chart of application example 1 of a disaster recovery method for a cluster system of the present application, which may specifically include:
[0099] Step 401, the working node sends a lease request to the control node after startup;
[0100] Step 402, the control node sends a lease to the working node according to the lease request;
[0101] Optionally, the control node may be the master node in the cluster system. The lease may carry the lease generation time and lease duration corresponding to the lease. The working node may receive the lease sent by the control node according to the lease request.
[0102] Step 403, the working node sends a renewal request to the control node before its own lease expires;
[0103] Step 404, the control node sends the lease to the working node according to the renewal request; ...
application example 2
[0112] In application example 2, the detected node may be the master node of the control node, and the detection node may be the management node. Specifically, the master node can determine whether its own lease is valid, and when its own lease is invalid, stop the lease task corresponding to its own lease; therefore, the split-brain problem caused by dual master nodes can be effectively avoided.
[0113] In addition, the lease duration recorded by the management node for the lease of the master node may be longer than the actual lease duration corresponding to the lease. In this way, when the management node determines that the master node is invalid and looks for a new master node, the lease of the master node has expired. Therefore, the split-brain problem caused by dual master nodes can be further effectively avoided.
[0114] As for the communication process between the management node and the master node in application example 2, since it is similar to the communication ...
application example 3
[0116] In application example 3, the detected node may be the backup node of the control node, and the detection node may be the master node of the control node. Specifically, the standby node can determine whether its own lease is valid, and when its own lease is invalid, stop the lease task corresponding to its own lease; for example, the lease task in this case can include: the task of electing the master node, etc. The standby node whose lease has expired does not need to participate in the selection of the primary node, so the split-brain problem caused by dual primary nodes can be effectively avoided.
[0117] As for the communication process between the master node and the standby node in Application Example 3, since it is similar to the communication process between the control node and the working node in Application Example 1, it will not be described here, and cross-references are sufficient.
[0118] The embodiment of the present application provides a data process...
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