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

Resource lock obtaining method based on ETCD

An acquisition method and resource lock technology, applied in resource allocation, program synchronization, program control design, etc., can solve the problems of mutual exclusion between multiple applications, inconsistent metadata, etc., to prevent resource deadlock and ensure consistency , the effect of improving accuracy

Pending Publication Date: 2020-11-13
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the system operates on resources, it needs to ensure that only one application operates the resource at the same time to ensure the atomicity of resources, otherwise it will easily cause inconsistency in metadata. Most of the existing resource lock technologies are for internal applications. The implementation of java's native lock mechanism can only guarantee the mutual exclusion of the resource among the various threads in the application, but cannot satisfy the mutual exclusion between multiple applications

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
  • Resource lock obtaining method based on ETCD
  • Resource lock obtaining method based on ETCD
  • Resource lock obtaining method based on ETCD

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] Etcd is a distributed key-value storage developed by CoreOS based on Raft, which can be used for service discovery, shared configuration and consistency guarantee.

[0036] The resource lock in the present invention mainly refers to the mutually exclusive operation of a certain resource by an application in the cluster, and can implement a blocking lock mechanism and a non-blocking lock mechanism for resources according to application requirements.

[0037] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, so that those skilled in the art can better understand the present invention and implement it, but the examples given are not intended to limit the present invention.

[0038] The present invention provides an ETCD-based resource lock acquisition method: use ETCD to add a specified lease to the resource, and within the lease period, the application that initiates the lease obtains the operation...

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 resource lock obtaining method based on ETCD, and relates to the technical field of resource access. The method comprises the steps: adding a specified lease to the resourceby using the ETCD; in the lease period, obtaining the operation authority of the resource by the application initiating the lease until the lease expires or the application releases the lease; otherwise, not performing lease application and operation on the resource by other applications.

Description

technical field [0001] The invention discloses an acquisition method, relates to the technical field of resource access, in particular to an ETCD-based resource lock acquisition method. Background technique [0002] With the rapid development of science and technology, in order to ensure the stable operation of the system, the application programs of the system are often deployed in clusters, and multiple copies run at the same time. When the system operates on resources, it needs to ensure that only one application operates the resource at the same time to ensure the atomicity of resources, otherwise it will easily cause inconsistency in metadata. Most of the existing resource lock technologies are for internal applications. The implementation of java's native lock mechanism can only guarantee the mutual exclusion of the resource among the various threads in the application, but cannot satisfy the mutual exclusion between multiple applications. Contents of the invention ...

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 Applications(China)
IPC IPC(8): G06F9/50G06F9/52
CPCG06F9/5022G06F9/5072G06F9/526
Inventor 赵建昌赵山王阳高传集
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD