How to create locks

Guide to creating distributed locks in etcd

lock for distributed lock:

08_etcdctl_lock_2016050501

etcdctl --endpoints=$ENDPOINTS lock mutex1

# another client with the same name blocks
etcdctl --endpoints=$ENDPOINTS lock mutex1

Last modified February 28, 2022: Create doc branch for v3.6 (9ed5c74)