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

Join cluster using hostnames #118

Closed
pulse00 opened this issue Aug 27, 2015 · 3 comments
Closed

Join cluster using hostnames #118

pulse00 opened this issue Aug 27, 2015 · 3 comments

Comments

@pulse00
Copy link
Contributor

pulse00 commented Aug 27, 2015

When joining a cluster using hostnames and not actual IP addresses, we see the following error using the command disque cluster meet some-node.example.com 7711:

(error) ERR Invalid node address specified: some-node.example.com:7711

If we supply the actual IP address of that server, the join command works.

Is this expected behavior?

@pulse00 pulse00 changed the title Join cluster using CNAMEs Join cluster using hostnames Aug 27, 2015
@simontabor
Copy link

Might be worth referring to Redis for this - I had an old issue here: redis/redis#2410

@antirez
Copy link
Owner

antirez commented Nov 28, 2015

Sorry no plans to work with hostnames so far. Consider that nodes can be moved to different IPs and will be able to rejoin the cluster and update the other nodes configuration with the new IP. However this only works when there is no natting or port remapping of any kind (see Docker & co). So first step is to fix Redis & Disque cluster to work well in natted environments. Then to consider if it's worth or not to use hostname (I doubt, because they add an additional layer of indirection, but who knows).

@antirez antirez closed this as completed Nov 28, 2015
@pulse00
Copy link
Contributor Author

pulse00 commented Nov 28, 2015

Consider that nodes can be moved to different IPs and will be able to rejoin the cluster and update the other nodes configuration with the new IP.

Ah, i had no idea that this is how it's supposed to work. Thank clears things up, thanks!

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

3 participants