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

[redis-6.0.3][redis-cluster] Master create in wrong configuration #7348

Open
Amitgb14 opened this issue May 31, 2020 · 2 comments
Open

[redis-6.0.3][redis-cluster] Master create in wrong configuration #7348

Amitgb14 opened this issue May 31, 2020 · 2 comments

Comments

@Amitgb14
Copy link

I'm migrating to redis cluster and create first master cluster by running command,
redis-cli --user admin --pass admin --cluster create 10.44.125.37:50180 10.44.125.39:50180 10.44.125.43:50180
re-run same command after delete node.conf and restart service, master added successfully.

Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
>>> Performing hash slots allocation on 3 nodes...
Master[0] -> Slots 0 - 5460
Master[1] -> Slots 5461 - 10922
Master[2] -> Slots 10923 - 16383
M: c707670f527382b2d54be0bf0614ee831ec48a58 10.44.125.37:50180
   slots:[0-16383] (5461 slots) master
M: 3fce4bcb3d6bb5d74a0cea0f2d9f19ba5352723d 10.44.125.39:50180
   slots:[0-16383] (5462 slots) master
M: aee1c5a640b525692bec2d96ac4fe1a582c513cc 10.44.125.43:50180
   slots:[0-16383] (5461 slots) master
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
Waiting for the cluster to join
..
>>> Performing Cluster Check (using node 10.44.125.37:50180)
S: c707670f527382b2d54be0bf0614ee831ec48a58 10.44.125.37:50180
   slots: (0 slots) slave
   replicates aee1c5a640b525692bec2d96ac4fe1a582c513cc
S: 3fce4bcb3d6bb5d74a0cea0f2d9f19ba5352723d 10.44.125.39:50180
   slots: (0 slots) slave
   replicates aee1c5a640b525692bec2d96ac4fe1a582c513cc
M: aee1c5a640b525692bec2d96ac4fe1a582c513cc 10.44.125.43:50180
   slots:[0-16383] (16384 slots) master
   2 additional replica(s)
[OK] All nodes agree about slots configuration.
>>> Check for open slots...
>>> Check slots coverage...
[OK] All 16384 slots covered.

$ redis-cli -p 50180 --user admin --pass admin123  cluster nodes
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
3fce4bcb3d6bb5d74a0cea0f2d9f19ba5352723d 10.44.125.39:50180@60180 slave aee1c5a640b525692bec2d96ac4fe1a582c513cc 0 1590921307668 3 connected
aee1c5a640b525692bec2d96ac4fe1a582c513cc 10.44.125.43:50180@60180 master - 0 1590921306664 3 connected 0-16383
c707670f527382b2d54be0bf0614ee831ec48a58 10.44.125.37:50180@60180 myself,slave aee1c5a640b525692bec2d96ac4fe1a582c513cc 0 1590921307000 1 connected
@bsergean
Copy link
Contributor

bsergean commented Jun 3, 2020

Do you have the same password on all redis slaves and masters ?

@Amitgb14
Copy link
Author

Amitgb14 commented Jun 3, 2020

There is no adding slave node now and username and password are same on all nodes, after delete node.conf file and run same command it correctly create masters cluster. I pass --cluster-replicas 0 and then it created cluster successfully

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