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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


