Skip to content

Commit

Permalink
Created 'How to conduct leader elections in etcd cluster' page (etcd-…
Browse files Browse the repository at this point in the history
…io#513)

* Created 'How to conduct leader elections in etcd cluster' page

* Added tutorials section and removed the portion from demo page

* Fixed broken link
  • Loading branch information
Somoshree authored Oct 11, 2021
1 parent c2f340b commit 92eb0de
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
15 changes: 0 additions & 15 deletions content/en/docs/v3.5/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,21 +226,6 @@ etcdctl --endpoints=$ENDPOINTS lock mutex1
etcdctl --endpoints=$ENDPOINTS lock mutex1
```


## Elections

`elect` for leader election:

![09_etcdctl_elect_2016050501](https://storage.googleapis.com/etcd/demo/09_etcdctl_elect_2016050501.gif)

```shell
etcdctl --endpoints=$ENDPOINTS elect one p1

# another client with the same name blocks
etcdctl --endpoints=$ENDPOINTS elect one p2
```


## Cluster status

Specify the initial cluster configuration for each machine:
Expand Down
3 changes: 3 additions & 0 deletions content/en/docs/v3.5/tutorials/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Tutorials
---
15 changes: 15 additions & 0 deletions content/en/docs/v3.5/tutorials/how-to-conduct-elections.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: How to conduct leader election in etcd cluster
description: Guide to conducting leader election in an etcd cluster
---

`elect` for leader election:

![09_etcdctl_elect_2016050501](https://storage.googleapis.com/etcd/demo/09_etcdctl_elect_2016050501.gif)

```shell
etcdctl --endpoints=$ENDPOINTS elect one p1

# another client with the same name blocks
etcdctl --endpoints=$ENDPOINTS elect one p2
```

0 comments on commit 92eb0de

Please sign in to comment.