v3.5.9: Being asked to reallocate Port 2380 when creating 2nd node for a multi-node etcd cluster in Docker container #16130
Replies: 1 comment 3 replies
-
Hi @Anand11Yash - I believe the instructions you're referring to expect three separate machines, can I clarify if you are running all commands on one machine? Within linux systems you generally can't have more than one process binding to a port number. When a process binds to a specific port on an IP address, it establishes itself as the receiver for any incoming traffic targeted at that port. If another process attempts to bind to the same port and IP address, it will typically encounter an "Address already in use" error you are seeing. If you would like to run a local multi member cluster all on one machine you would need to use different ports for each one, alternatively consider following the goreman example in our readme: https://github.com/etcd-io/etcd#running-a-local-etcd-cluster |
Beta Was this translation helpful? Give feedback.
-
Hi everyone
I am following this section of the etcd v3.5 document for creating a 3 node etcd cluster using Docker.
The issue that I am getting is that after creating the first node, I am not able to create the next nodes as I am hit with the error provided below, asking me to change the 2380 port for the second node:
Please correct me if I am wrong but aren't the nodes supposed to be on the same ports? If no, then should I change the ports? Otherwise please provide a solution for how to run the next nodes on the same port.
For reference, the code that I followed from the above documentation page was as follows:
Additionally, I would like to request you to please provide a simpler version of the above commands that can be run to create a 3 node etcd cluster as it is a bit difficult for me to understand these current commands.
Beta Was this translation helpful? Give feedback.
All reactions