-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ETCD Cluster not showing members #11804
Comments
Can you verify you create a two-node cluster? For example, put a kv pair on one node and then test whether you can get it from another. Line 327 in 28c47bb
Before #11198, the MemberList does not serve with linearizable data. If there is no member update operation, the api will serve the members info set at the beginning and raft state machine will not get involved.
|
@YoyinZyc - I tried adding a kv pair on one node and fetching it from the other, and am unable to fetch the resultant kv. Could you please guide me on what is causing this issue. I have followed the steps as mentioned in most documents for creating a cluster but somehow unable to replicate the result. Do i need to use etcdctl add member to extend on the existing cluster? |
@YoyinZyc - Just an update. When I manually ran etcd by passing arguments in the command line the functionality is working as expected. However, while trying to run as a service by adding the necessary values in the etcd Service File :
|
I got a working cluster by following the link : https://github.com/etcd-io/etcd/tree/master/contrib/systemd/etcd3-multinode Just wanted to know how to remove this cluster once I am done with my testing. |
I don't think we have some command to delete a cluster. If you don't need it anymore, you can just remove the data dir(*.etcd) on each node. |
Got it. Thanks.. |
Hi I just want to say that the problem was because Debian starts etcd daemon as soon as it is installed, therefore the data directory is already initialized. The setup will work if you give it a new ETCD_DATA_DIR. |
Hi,
I am trying to setup a etcd cluster for my Patroni setup and unable to do so. Each individual node seems to be running fine but while trying to fetch the member list I am getting information containing only the node on which I am running the command.
OS : Ubuntu 18.04 (AWS EC2)
etcd version : 3.2.17
etcdctl API version: 2
etcd config -
Node 1 :
Node 2 :
Node1 :
Node 2:
I am planning to include a 3rd node as recommended, but in my testing environment I am trying to do it on a two node cluster.
Appreciate any inputs to resolve this issue.
The text was updated successfully, but these errors were encountered: