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

CN106484542BActive Publication Date: 2020-05-19HUAWEI TECH CO LTD
4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2020-05-19

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides a method for processing an overlapping node event. The method is used for a distributed system. The method comprises the steps as follows: a target node receives a first node event and generates a first node event task; the conditions that the first node event task doesn't conflict with the node event task in a run queue in a distributed lock manager DLM of the target node and the first node event task does not conflict with the node event task in a conflict queue in the distributed lock manager DLM are determined, and the first node event task is put into the run queue, wherein the run queue is used for storing one or more node event tasks which are being executed and the conflict queue is used for storing the node event task waiting for execution; and the first node event task in the run queue is executed.
Need to check novelty before this filing date? Find Prior Art

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...