Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for locking access operations of shared resources

A technology for sharing resources and accessing operations, which is applied in the computer field and can solve problems such as reducing the response rate of locking

Active Publication Date: 2020-12-01
HUAWEI TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, when a lock request is triggered by one of the remaining nodes, the next lock request is usually triggered by this node. In the process, information interaction between nodes is required, which will reduce the lock response rate

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 locking access operations of shared resources
  • A method and device for locking access operations of shared resources
  • A method and device for locking access operations of shared resources

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The relevant terms and technologies involved in the embodiments of the present application are firstly explained below.

[0029] Shared resources refer to resources that can be accessed by multiple nodes in a distributed system. Specifically, the resource may be a storage hard disk, a storage space corresponding to a virtualized hard disk domain, a storage pool, and the like. Shared resources can be deployed on one or more nodes in the distributed system, or on a device outside the distributed system.

[0030]A business module refers to a module that accesses shared resources in a node of a distributed system. In other words, the nodes access the shared resources, specifically, the service modules in the nodes access the shared resources. Each node of the distributed system can include one or more business modules. Different shared resources can be accessed by different nodes / business modules. For example, shared resource 1 can be accessed by nodes 1 and 2, that is,...

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 discloses a method and a device for locking an access operation of a shared resource. The invention relates to the technical field of computers, in particular to a method and device forimproving the locking response rate under the scene that most of locking requests come from one node in a distributed system, a certain locking request is triggered by other nodes, and the next locking request is usually triggered by the node. The method is applied to a management node used for managing the lock permission of at least two nodes for accessing a shared resource in a distributed system, and the node with the lock permission executes an operation indicated by the lock permission on the shared resource. The method comprises the following steps: receiving a lock permission request which is sent by a first node and requests to access a first lock permission of a shared resource;granting the first lock permission to the first node; determining a node, which has the continuous access frequency of the shared resources greater than or equal to a preset threshold value and has the continuous access time closest to the current moment, in the at least two nodes as a hot spot node; and recovering the first node and granting the first lock permission to the hot spot node.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a method and device for locking shared resource access operations. Background technique [0002] In a distributed system, nodes usually access shared resources through distributed locks. Currently, the distributed locks management (DLM) system is deployed in the following ways: figure 1 shown. refer to figure 1 , the system includes multiple nodes ( figure 1 Take 4 nodes (nodes 1-4 as an example), one of the nodes (for example, node 1) deploys a DLM arbitration (DLM_Master) module, and each node deploys a DLM local proxy (DLM_Proxy) module. A node deployed with a DLM_Master module may be called a management node, and a node not deployed with a DLM_Master module may be called a non-management node. The DLM_Master module is responsible for managing the lock request sent by the DLM_Proxy of each node. The lock request is used to request the lock permission, and ...

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/52
CPCG06F9/526
Inventor 龚丛兵
Owner HUAWEI TECH CO LTD