-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Closed
Milestone
Description
I've started a single-node cluster:
% ./bin/etcd -name=uno -initial-cluster=uno=http://127.0.0.1:2380
2014/10/29 13:57:37 etcd: no data-dir provided, using default data-dir ./uno.etcd
2014/10/29 13:57:37 etcdserver: start node bc3f316962a4ce82 in cluster 9dbd6201abd472d6
2014/10/29 13:57:37 etcd: listening for peers on http://localhost:2380
2014/10/29 13:57:37 etcd: listening for peers on http://localhost:7001
2014/10/29 13:57:37 etcd: listening for client requests on http://localhost:2379
2014/10/29 13:57:37 etcd: listening for client requests on http://localhost:4001
2014/10/29 13:57:38 raft: leader changed from 0 to bc3f316962a4ce82
2014/10/29 13:57:38 etcdserver: published {Name:uno ClientURLs:[http://localhost:2379 http://localhost:4001]} to cluster 9dbd6201abd472d6
I want to add a node, so I make the following API request:
% curl -X POST http://127.0.0.1:4001/v2/admin/members -H "Content-Type: application/json" -d '{"peerURLs":["http://127.0.0.1:8080"]}'
{"id":"81adb4cd6185c55c","peerURLs":["http://127.0.0.1:8080"]}
Now it is unclear what args I actually need to use in order to join the cluster. What would the necessary invocation of etcd
be here to bring up a new node in this cluster with the peerURL http://127.0.0.1:8080
?