'How to failover in etcd cluster
I have 3 nodes etcd cluster i.e. one master and two slaves. I need to bring down the master node for some maintenance activity. So, I tried conducting elections to elect a new master but it didn't work.
Below is the current state of the etcd cluster
etcdctl --write-out=table --endpoints=$ENDPOINTS endpoint status
+---------------------+------------------+---------+---------+-----------+-----------+------------+
| ENDPOINT | ID | VERSION | DB SIZE | IS LEADER | RAFT TERM | RAFT INDEX |
+---------------------+------------------+---------+---------+-----------+-----------+------------+
| X.X.X.5:2379 | ac354ac61b853b35 | 3.2.26 | 25 kB | true | 12 | 13 |
| X.X.X.6:2379 | 7f34769979eb782 | 3.2.26 | 25 kB | false | 12 | 13 |
| X.X.X.9:2379 | 9174c96c4669dfb5 | 3.2.26 | 25 kB | false | 12 | 13 |
+---------------------+------------------+---------+---------+-----------+-----------+------------+
Below is the command that I used to conduct the election. I ran the below from node 3 i.e. X.X.X.9 but its command got struct forever. I am new to etcd, so not sure whether I am using the command correctly
etcdctl --endpoints=$ENDPOINTS elect failover app03
failover/37827ec3fd292b03
app03
Thanks in advance
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
