CLUSTER ADDSLOTSRANGE
CLUSTER ADDSLOTSRANGE start-slot end-slot [start-slot end-slot ...]
@admin, @slow, @dangerous, The CLUSTER ADDSLOTSRANGE is similar to the CLUSTER ADDSLOTS command in that they both assign hash slots to nodes.
The difference between the two commands is that ADDSLOTS takes a list of slots to assign to the node, while ADDSLOTSRANGE takes a list of slot ranges (specified by start and end slots) to assign to the node.
To assign slots 1 2 3 4 5 to the node, the ADDSLOTS command is:
> CLUSTER ADDSLOTS 1 2 3 4 5 OK
The same operation can be completed with the following ADDSLOTSRANGE command:
> CLUSTER ADDSLOTSRANGE 1 5 OK
This command only works in cluster mode and is useful in the following Redis Cluster operations:
Simple string reply: OK if the command was successful. Otherwise an error is returned.
© 2006–2022 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/cluster-addslotsrange/