Cant create only master nodes Cluster

29 views
Skip to first unread message

george lin

unread,
Sep 12, 2021, 8:10:17 PM9/12/21
to Redis DB
I only have 3 vm, and I want to create 3 master nodes cluster without replica. 

It Always become 1 master and 2 slave.

my command:

Why  result Is not the same with configuration??
result: 
>>> Performing hash slots allocation on 3 nodes...
Master[0] -> Slots 0 - 5460
Master[1] -> Slots 5461 - 10922
Master[2] -> Slots 10923 - 16383
M: c3d0be42f210d7a3a443bdf33b2891c7e4633d7a 10.140.0.15:6379
   slots:[0-16383] (5461 slots) master
M: 5c0074c90de6f28aad1ecbd5723a882c989b0616 10.140.0.16:6379
   slots:[0-16383] (5462 slots) master
M: 6bc9c37eada7628588fdcb3cc5732b80592bf302 10.140.0.17:6379
   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.140.0.15:6379)
S: c3d0be42f210d7a3a443bdf33b2891c7e4633d7a 10.140.0.15:6379
   slots: (0 slots) slave
   replicates 5c0074c90de6f28aad1ecbd5723a882c989b0616
S: 6bc9c37eada7628588fdcb3cc5732b80592bf302 10.140.0.17:6379
   slots: (0 slots) slave
   replicates 5c0074c90de6f28aad1ecbd5723a882c989b0616
M: 5c0074c90de6f28aad1ecbd5723a882c989b0616 10.140.0.16:6379
   slots:[0-16383] (16384 slots) master
   2 additional replica(s)

george lin

unread,
Sep 12, 2021, 11:59:58 PM9/12/21
to Redis DB
I have tried  --cluster-replicas 0、addnode 、cluster meet and none of them is successed.
george lin 在 2021年9月13日 星期一上午8:10:17 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages