-
Notifications
You must be signed in to change notification settings - Fork 23.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
redis-trib support to resolve hostname to IP address #2323
Conversation
This is a reasonable addition. If we want |
This addition is a must have to facilitate the cluster's management. |
+1 |
boo, hit no password support, now no hostname support. is it faster to just issue redis command directly? |
2c: I get why we wouldn't want to do this: if the cluster internally sets up as IP addresses then do not give the illusion of supporting hostnames. In practice, though, that changes my crib notes from something clean like:
To this sort of atrocity:
Might I suggest:
Thanks, |
+1 |
Wait, does Redis only support IPs internally for all operations or just clustering? The reason I ask is that I'm looking at setting up a fairly substantive cluster that would span multiple nodes. If a node dies, I can re-create it with the same hostname but the IP may change (due to the way our system handles virtual machines). If we're able to bring up a new VM with the same host, I'd love to see Redis auto-recover without having to remove the old IPs and add in the new ones and set new slaves. +1 for internal hostname support! |
Even without internal hostname support it would be so much more convenient to call the command with a hostname. Especially if you use some (zsh) shell-globbing: redis-trib.rb create --replicas 1 redis-{00..07}:{7000..7015} Instead of... well, you can guess how it'll be when I replace those with IP addresses ;) |
+1 for internal hostname support |
|
@qvissak redis-server may support hostnames, but |
As a workaround, why not use
Edit: Ah, I am sorry. In cluster-mode you cannot set replica's with either config value of
|
Any update on this? |
@tculp redis-trib is no longer supported. New versions of redis use |
I get why this was closed, but no related ticket? |
This is an issue for us too. |
@jordigarcl @nlalexandrov all the code from redis-trib was moved to redis-cli, so this PR is no longer relevant. but it seems that redis-cli suffers from the same problem. |
Currently, redis-trib can't resolve hostname to IP address, e.g., when it starts to create redis cluster.
Related to issue #2186.