CLUSTER-...ATESLOTS(3valkey)
π CLUSTER-...ATESLOTS(3valkey) π
okay bestie, welcome to the Valkey Command Manual entry for CLUSTER MIGRATESLOTS β aka cluster-migrateslots (3valkey). this is the one that yeets your slots to other nodes, no cap. π¦
β¨ NAME β¨
cluster-migrateslots β Migrate the given slots from this node to the specified nodes.
π SYNOPSIS π
CLUSTER MIGRATESLOTS SLOTSRANGE start-slot end-slot [start-slot end-slot ...] NODE node-id [SLOTSRANGE start-slot end-slot [start-slot end-slot ...] NODE node-id ...]
πΈ DESCRIPTION πΈ
so like, CLUSTER MIGRATESLOTS kicks off an asynchronous migration of the slot range(s) you point at, sending them to the target node you name, using valkey-atomic-slot-migration(7). it's giving "move out, slots, we're going to a new home" energy. π
this command is super flexible: you can do many slot ranges in one migration by repeating start and end slot pairs inside the SLOTSRANGE block. and you can do multiple migrations in one command by repeating whole SLOTSRANGE and NODE blocks. for example:
CLUSTER MIGRATESLOTS SLOTSRANGE 0 9 20 29 NODE <target A> SLOTSRANGE 10 19 NODE <target B>
that right there initiates two slot migration jobs: one to <target A> with 20 slots (0-9 inclusive, 20-29 inclusive) and another to <target B> with 10 slots (10-19 inclusive). periodt. π
if all slot migrations are successfully initiated, you get OK back. if not, you get an error message and no slot migrations are initiated β like, none, zero, zilch. π
wanna check on the progress of the slot migration? use the valkey-cluster-getslotmigrations(7) CLUSTER GETSLOTMIGRATIONS command. it's the vibe check for your migrations. π
β‘ COMPLEXITY β‘
O(N) where N is the total number of the slots between all start slot and end slot arguments.
π ACL CATEGORIES π
@admin@dangerous@slow
π°οΈ HISTORY π°οΈ
- Available since: 9.0.0
π SEE ALSO π
asking(3valkey)cluster(3valkey)cluster-addslots(3valkey)cluster-addslotsrange(3valkey)cluster-bumpepoch(3valkey)cluster-cancelslotmigrations(3valkey)cluster-count-failure-reports(3valkey)cluster-countkeysinslot(3valkey)cluster-delslots(3valkey)cluster-delslotsrange(3valkey)cluster-failover(3valkey)cluster-flushslots(3valkey)cluster-forget(3valkey)cluster-getkeysinslot(3valkey)cluster-getslotmigrations(3valkey)cluster-help(3valkey)cluster-info(3valkey)cluster-keyslot(3valkey)cluster-links(3valkey)cluster-meet(3valkey)cluster-myid(3valkey)cluster-myshardid(3valkey)cluster-nodes(3valkey)cluster-replicas(3valkey)cluster-replicate(3valkey)cluster-reset(3valkey)cluster-saveconfig(3valkey)cluster-set-config-epoch(3valkey)cluster-setslot(3valkey)cluster-shards(3valkey)cluster-slot-stats(3valkey)cluster-slots(3valkey)cluster-syncslots(3valkey)readonly(3valkey)readwrite(3valkey)
and that's the whole page, bestie! this was 9.0.0 from 2025-10-21, the CLUSTER-...ATESLOTS(3valkey) manual. go slay those slot migrations! π β¨π¦
π¦ where this page comes from
- fedora 44: valkey-doc 9.0.3-2.fc44 Β· CC-BY-SA-4.0
- fedora 44: valkey-doc 9.0.6-1.fc44 Β· CC-BY-SA-4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms