diff --git a/content/en/docs/v3.5/demo.md b/content/en/docs/v3.5/demo.md index 50615bc5..9baf3c83 100644 --- a/content/en/docs/v3.5/demo.md +++ b/content/en/docs/v3.5/demo.md @@ -142,20 +142,6 @@ etcdctl --endpoints=$ENDPOINTS lease revoke 2be7547fbc6a5afa etcdctl --endpoints=$ENDPOINTS get sample ``` - -## Distributed locks - -`lock` for distributed lock: - -![08_etcdctl_lock_2016050501](https://storage.googleapis.com/etcd/demo/08_etcdctl_lock_2016050501.gif) - -```shell -etcdctl --endpoints=$ENDPOINTS lock mutex1 - -# another client with the same name blocks -etcdctl --endpoints=$ENDPOINTS lock mutex1 -``` - ## Cluster status Specify the initial cluster configuration for each machine: diff --git a/content/en/docs/v3.5/tutorials/how-to-create-locks.md b/content/en/docs/v3.5/tutorials/how-to-create-locks.md new file mode 100644 index 00000000..dc098c68 --- /dev/null +++ b/content/en/docs/v3.5/tutorials/how-to-create-locks.md @@ -0,0 +1,15 @@ +--- +title: How to create locks +description: Guide to creating distributed locks in etcd +--- + +`lock` for distributed lock: + +![08_etcdctl_lock_2016050501](https://storage.googleapis.com/etcd/demo/08_etcdctl_lock_2016050501.gif) + +```shell +etcdctl --endpoints=$ENDPOINTS lock mutex1 + +# another client with the same name blocks +etcdctl --endpoints=$ENDPOINTS lock mutex1 +```