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
Comment From: bsergean
Do you have the same password on all redis slaves and masters ?
Comment From: Amitgb14
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