Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2020-05-19
HUAWEI TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Although the solutions in the prior art ensure the orderly processing of overlapping node events, when a large number of overlapping node events occur in the distributed node system, it takes a long time to process all node events serially, causing the DLM to resume normal operation. The time is also long, which significantly affects the operating efficiency of the distributed system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for processing overlapping node events in a distributed system
  • A method and device for processing overlapping node events in a distributed system
  • A method and device for processing overlapping node events in a distributed system

Examples

Experimental program
Comparison scheme
Effect test

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

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

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.

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

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/54G06F9/52
CPCG06F9/524G06F9/546
Inventor 郑阳平
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products