LOCK acquires a distributed mutex with a given name. Once the lock is acquired, it will be held until etcdctl is terminated.
etcd
and etcdctl
lock
for distributed lock:
etcdctl --endpoints=$ENDPOINTS lock mutex1
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.