The problem/use-case that the feature addresses

Now, in the cluster mode. By using command CLUSTER DELSLOTS slot [slot ...] and command CLUSTER ADDSLOTS slot [slot ...] user can only assign or forget discrete slot for a cluster node instead of a slot range.

Foe example, if user want to assign 1--5000 slot to a cluster node, user has only 2 choices: option 1: run command CLUSTER ADDSLOTS 1 2 3 .... 4999 5000
option 2: assign these slot by bash shell command redis-cli -h 127.0.0.1 -p 6379 cluster addslots {0...5000}

Description of the feature

I would like to add 2 new commands:

CLUSTER DELSLOTSRANGE startslot endslot [startslot endslot...] CLUSTER ADDSLOTSRANGE startslot endslot [startslot endslot...]

Alternatives you've considered

Additional information

Comment From: zuiderkwast

What's your use case? I can guess it's one of these:

  • Do you want to be less dependent on redis-cli --cluster for cluster management?
  • Would some tools need fewer calls to Redis with this feature, for example redis-cli --cluster reshard|rebalance? How?

Comment From: hwware

What's your use case? I can guess it's one of these:

  • Do you want to be less dependent on redis-cli --cluster for cluster management?
  • Would some tools need fewer calls to Redis with this feature, for example redis-cli --cluster reshard|rebalance? How?

So far, at least for the first case: less or non dependent on redis-cli for cluster management, give our user much easier and more options to set the slot for a cluster node.

Comment From: hwware

What's your use case? I can guess it's one of these:

  • Do you want to be less dependent on redis-cli --cluster for cluster management?
  • Would some tools need fewer calls to Redis with this feature, for example redis-cli --cluster reshard|rebalance? How?

I already create a PR https://github.com/redis/redis/pull/9445 for this new feature.
@zuiderkwast