etcd 3.7
How to create locks
Official etcd 3.7 guides for developers, operators, upgrades, APIs, and internals.
LOCK acquires a distributed mutex with a given name. Once the lock is acquired, it will be held until etcdctl is terminated.
Prerequisites
- Install
etcdandetcdctl
Creating a lock
lock for distributed lock:
Options
- endpoints - defines a comma-delimited list of machine addresses in the cluster.
- ttl - time out in seconds of lock session.
Source and license
Documentation imported from pig.center · Upstream documentation
- Version
- 3.7
- License
- CC-BY-4.0
- Source revision
cd1a9d68fc9418f02dbf478ffac90f7891fdb53c8a4ac77c2d8284c7b12b6c3d