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

Creating cluster with DNS aliases breaks #2565

Closed
Grokzen opened this issue May 5, 2015 · 2 comments
Closed

Creating cluster with DNS aliases breaks #2565

Grokzen opened this issue May 5, 2015 · 2 comments

Comments

@Grokzen
Copy link

Grokzen commented May 5, 2015

I tried to create a redis cluster with DNS names instead of IP addresses and i got this error

root@06b360f951ae:/# ruby /redis/src/redis-trib.rb create --replicas 1 redis-cluster.docker:7000 redis-cluster.docker:7001 redis-cluster.docker:7002 redis-cluster.docker:7003 redis-cluster.docker:7004 redis-cluster.docker:7005
>>> Creating cluster
Connecting to node redis-cluster.docker:7000: OK
Connecting to node redis-cluster.docker:7001: OK
Connecting to node redis-cluster.docker:7002: OK
Connecting to node redis-cluster.docker:7003: OK
Connecting to node redis-cluster.docker:7004: OK
Connecting to node redis-cluster.docker:7005: OK
>>> Performing hash slots allocation on 6 nodes...
Using 3 masters:
redis-cluster.docker:7000
redis-cluster.docker:7001
redis-cluster.docker:7002
Adding replica redis-cluster.docker:7003 to redis-cluster.docker:7000
Adding replica redis-cluster.docker:7004 to redis-cluster.docker:7001
Adding replica redis-cluster.docker:7005 to redis-cluster.docker:7002
M: 4ee26d3c0295bc439b8324b518d284d140d10ba1 redis-cluster.docker:7000
   slots:0-5460 (5461 slots) master
M: 1d9747b10f77dfbe9e01bc56df39e941b53a598e redis-cluster.docker:7001
   slots:5461-10922 (5462 slots) master
M: f97e849fa89b3e7043585823095e604bb4857dec redis-cluster.docker:7002
   slots:10923-16383 (5461 slots) master
S: 1d4db5cbe74d88a1c448ac5dceb040b4dda51c0b redis-cluster.docker:7003
   replicates 4ee26d3c0295bc439b8324b518d284d140d10ba1
S: d7c12ffa57d7709a9d4d8fa6b6b8a7cffb2f3e1d redis-cluster.docker:7004
   replicates 1d9747b10f77dfbe9e01bc56df39e941b53a598e
S: 829acc76ecfea0c2f6124e7e16362b8ec28a97b3 redis-cluster.docker:7005
   replicates f97e849fa89b3e7043585823095e604bb4857dec
Can I set the above configuration? (type 'yes' to accept): yes
>>> Nodes configuration updated
>>> Assign a different config epoch to each node
>>> Sending CLUSTER MEET messages to join the cluster
/var/lib/gems/1.8/gems/redis-3.2.1/lib/redis/client.rb:113:in `call': ERR Invalid node address specified: redis-cluster.docker:7000 (Redis::CommandError)
    from /var/lib/gems/1.8/gems/redis-3.2.1/lib/redis.rb:2556:in `method_missing'
    from /var/lib/gems/1.8/gems/redis-3.2.1/lib/redis.rb:37:in `synchronize'
    from /usr/lib/ruby/1.8/monitor.rb:242:in `mon_synchronize'
    from /var/lib/gems/1.8/gems/redis-3.2.1/lib/redis.rb:37:in `synchronize'
    from /var/lib/gems/1.8/gems/redis-3.2.1/lib/redis.rb:2555:in `method_missing'
    from /redis/src/redis-trib.rb:692:in `join_cluster'
    from /redis/src/redis-trib.rb:690:in `each'
    from /redis/src/redis-trib.rb:690:in `join_cluster'
    from /redis/src/redis-trib.rb:1002:in `create_cluster_cmd'
    from /redis/src/redis-trib.rb:1373:in `send'
    from /redis/src/redis-trib.rb:1373
@badboy
Copy link
Contributor

badboy commented May 5, 2015

Currently Cluster doesn't support hostnames, see #2186, #2410, #2323

@Grokzen
Copy link
Author

Grokzen commented May 5, 2015

Ah, good stuff, Closing because of dupe then :]

@Grokzen Grokzen closed this as completed May 5, 2015
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

2 participants