Skip to content
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

Consul join does not try multiple address #1711

Closed
nrbunn opened this issue Feb 11, 2016 · 1 comment
Closed

Consul join does not try multiple address #1711

nrbunn opened this issue Feb 11, 2016 · 1 comment

Comments

@nrbunn
Copy link

nrbunn commented Feb 11, 2016

Consul v0.6.0

Per the documention https://www.consul.io/docs/commands/join.html I believe we should be able to provide mulitple IPs to our server cluster. If it fails to connect to one of the IPs it goes to the next in the list. Currently we are not seeing this.

Example Command:
consul -start -c consul --exec /usr/local/bin/consul --agent -config-dir=/etc/consul.d -bind={BIND_IP} -join 10.0.0.1 10.0.0.2 10.0.0.3 -data-dir=/srv/consul -dc=my_test

consul.log
Starting Consul agent...
==> Starting Consul agent RPC...
==> Joining cluster...
==> dial tcp 10.0.0.1:8301: getsockopt: connection refused

I don't see it try any other IPs in the list.

I have three nodes in my server cluster. To simulate the issue i shutdown the consul server process on the first IP in the list.

@nrbunn
Copy link
Author

nrbunn commented Feb 15, 2016

I found out after looking into the code and rereading the -join option the way i have the command won't work. Looks like it should be
consul -start -c consul --exec /usr/local/bin/consul --agent -config-dir=/etc/consul.d -bind={BIND_IP} -join 10.0.0.1 -join 10.0.0.2 -join 10.0.0.3 -data-dir=/srv/consul -dc=my_test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant