Skip to content

"CLUSTER MIGRATE slot node" command #2807

@drabaioli

Description

@drabaioli

Feature request:
At the moment, in order to migrate a slot from one node to another, the redis-trib.rb script is needed or it involves multiple operations on different nodes:

  • CLUSTER SETSLOT slot IMPORTING on target
  • CLUSTER SETSLOT slot MIGRATING on source
  • For each key in (CLUSTER GETKEYSINSLOT slot count):
    • MIGRATE target_host target_port key target_database id timeout
  • CLUSTER SETSLOT slot NODE node-id on all nodes

However this set of operations could be wrapped in a "native" command:

CLUSTER MIGRATE slot target-node

As far as I can see, once this command is integrated, the CLUSTER SETSLOT slot [NODE|MIGRATING|IMPORTING] command would not be needed anymore.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions