A method and device for processing overlapping node events in a distributed system
A distributed system and overlapping node technology, applied in the electronic field, can solve problems such as long time, long time for DLM to resume normal work, and affect the operating efficiency of the distributed system, so as to reduce the impact of operating efficiency, save processing time, and save The effect of the timing of processing overlapping node events
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2020-05-19
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The present invention relates to the field of electronic technology, in particular to a method and device for processing overlapping node events in a distributed system Background technique
[0002] Distributed Lock (Distributed Lock) is a way to control synchronous access to shared resources between distributed systems; Distributed Lock Manager (DLM) runs on each node in the distributed system, and controls each resource on the node. Distribution on , providing resource access rights (that is, lock rights) granting policies and managing access rights to shared resources.
[0003] Because there are multiple nodes in the distributed system, multiple node events may occur, and the node events overlap with each other. The existing solution for dealing with overlapping node events is that the Distributed Lock Manager (DLM) adopts advanced The out-of-queue (FIFO) receives node events, and then takes out node events from the FIFO according to the time seque...
Examples
Embodiment 1
[0065] The method for handling overlapping node events provided by Embodiment 1 uses two queues, the run queue and the conflict queue, to manage node event tasks, and the non-conflicting node event tasks are placed in the run queue for execution without waiting for processing, and multiple node events are realized. At the same time, the conflicting node event tasks are put into the conflict queue, which realizes the orderly processing of conflicting node events, thereby saving the time for processing overlapping node events, enabling DLM to resume normal work quickly, and reducing the need for distributed impact on system efficiency.
[0066] In addition, it should be noted that the node event tasks in the conflict queue always have a chance to be executed, which will be described in the second embodiment of the present invention according to the situation:
[0067] Case 1: The node event task A in the conflict queue conflicts with the node event task B being executed in the r...