A distributed system multi-node locking method
A distributed system, multi-node technology, applied in the field of distributed systems, can solve problems such as inability to use distributed lock services, increase maintenance overhead of authoritative nodes, and inability to achieve resource locking, etc. strong effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0053] Such as figure 1 As shown, the distributed system multi-node locking method of the present invention comprises the following steps:
[0054] Step 1. Assign identity information to all nodes to be locked in the distributed system; by assigning identity information, each node can be easily distinguished, and it is convenient to identify each pre-locked successful node, pre-locked failed node, locked successful node and lock failure node;
[0055] Step 2. Send a pre-lock request to all nodes to be locked;
[0056] Step 3. Determine whether all the nodes to be locked are pre-locked successfully. When the pre-locking of the nodes to be locked fails, send an unlocking pre-locking message to each node to be locked. If the pre-locking fails, wait for time T1 and return to the execution step 2. When all nodes to be locked are pre-locked successfully, send a lock request to all nodes to be locked, and if the pre-lock is successful, perform step 4;
[0057] Step 4. Determine wh...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

