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

A distributed lock management method and device

A distributed lock and management method technology, applied in the computer field, can solve problems such as lock conflicts and low processing efficiency, and achieve the effects of alleviating lock hunger, improving processing efficiency, and shortening processing time

Active Publication Date: 2021-12-24
赵志强
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The technical problem to be solved by the present invention is to solve the problems of low processing efficiency and easy occurrence of lock conflicts when the existing distributed lock management method is applied in a multi-layer heterogeneous bandwidth network

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 distributed lock management method and device
  • A distributed lock management method and device
  • A distributed lock management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] figure 1 It is a schematic flowchart of the distributed lock management method in Embodiment 1 of the present invention. Such as figure 1 As shown, the distributed lock management method provided by the embodiment of the present invention includes:

[0032] Step S101 , after receiving the lock request of the transaction, it is determined whether the access data of the transaction is located in the local computer cluster by querying the local knowledge configuration table.

[0033]Wherein, the local knowledge configuration table records the information of the data in the local computer cluster, such as the data identifier in the local computer cluster. In an optional example, after receiving the lock request of the transaction, the distributed lock management device can parse out the access data identifier of the transaction from the lock request, and then query according to the access data identifier of the transaction Local knowledge configuration table. If the acc...

Embodiment 2

[0046] figure 2 is a schematic flowchart of the distributed lock management method in Embodiment 2 of the present invention. Such as figure 2 As shown, the distributed lock management method provided by the embodiment of the present invention includes:

[0047] Step S201. After receiving the lock request of the transaction, it is determined whether the access data of the transaction is located in the local computer cluster by querying the local knowledge configuration table. If the access data of the transaction is located in the local computer cluster, step S202 may be executed; if the access data of the transaction is not located in the local computer cluster, step S206 may be executed.

[0048] Wherein, the local knowledge configuration table records the information of the data in the local computer cluster, such as the data identifier in the local computer cluster. In an optional example, after receiving the lock request of the transaction, the distributed lock manage...

Embodiment 3

[0071] Figure 4 It is a schematic diagram of the module composition of the distributed lock management device in Embodiment 3 of the present invention. Such as Figure 4 As shown, the distributed lock management device 400 of the embodiment of the present invention includes: a judgment module 401 , an allocation module 402 , and an authorization module 403 .

[0072] The judging module 401 is configured to, after receiving the lock request of the transaction, judge whether the access data of the transaction is located in the local computer cluster by querying the local knowledge configuration table.

[0073] Wherein, the local knowledge configuration table records the information of the data in the local computer cluster, such as the data identifier in the local computer cluster. In an optional example, after receiving the lock request of the transaction, the judging module 401 can parse out the access data identifier of the transaction from the lock request, and then query...

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 distributed lock management method and device, and relates to the technical field of computers. The method includes: after receiving the lock request of the transaction, judging whether the access data of the transaction is located in the local computer cluster by querying the local knowledge configuration table; if the access data of the transaction is located in the local computer cluster, according to The estimated processing time of the transaction or the network bandwidth of the source of the transaction, put the lock request of the transaction into the corresponding pending request queue, and assign a unique lock application code for the transaction; in the transaction When the lock request is at the head of the queue, judge whether the lock authorization condition is satisfied according to the unique lock application code allocated for the transaction, and grant the lock to the transaction when the lock authorization condition is satisfied. Through the above steps, problems such as low processing efficiency and easy occurrence of lock conflicts existing in the application of the existing distributed lock management method under the multi-layer heterogeneous bandwidth network can be solved.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a distributed lock management method and device. Background technique [0002] Distributed memory systems have become more prevalent as today's workloads can fit in the memory of a handful of computers and can be processed faster than with traditional architectures by supporting the Remote Direct Memory Access (RDMA) networking protocol. [0003] Lock managers are an essential part of modern distributed systems, forming the backbone of many distributed systems accessing shared resources over a network. In transaction management, the primary responsibility of a lock manager is to ensure serializability or other forms of isolation and starvation-free behavior for competing transactions. Currently, distributed lock managers mainly include a centralized lock manager (CLM) and a distributed lock manager (DLM). Among them, the advantage of CLM is that it has global knowledge. The d...

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): H04L29/08
CPCH04L67/60
Inventor 赵志强
Owner 赵志强