cluster setslot
CLUSTER
CLUSTER SETSLOT slot IMPORTING|MIGRATING|STABLE|NODE [node-id]
CLUSTER SETSLOT is responsible of changing the state of a hash slot in the receiving node in different ways. It can, depending on the subcommand used:
-
MIGRATING
subcommand: Set a hash slot in migrating state. -
IMPORTING
subcommand: Set a hash slot in importing state. -
STABLE
subcommand: Clear any importing / migrating state from hash slot. -
NODE
subcommand: Bind the hash slot to a different node.
The command with its set of subcommands is useful in order to start and end cluster live resharding operations, which are accomplished by setting a hash slot in migrating state in the source