CLUSTER-...GRATIONS(3valkey)
π CLUSTER-CANCELSLOTMIGRATIONS π
okay bestie, welcome to the Valkey Command Manual, section 3valkey β yes the title is literally CLUSTER-...GRATIONS(3valkey) because manpage headers love to be mysterious, but the actual star of the show is cluster-cancelslotmigrations, and she is so iconic for a command that's basically a big red "stop π" button. no cap.
β¨ NAME β¨
cluster-cancelslotmigrations β cancel all current ongoing slot migration operations. like, all of them. every single one. bye π
π SYNOPSIS π
CLUSTER CANCELSLOTMIGRATIONS
that's it. no args, no flags, no drama. she just does the thing. π
πΈ DESCRIPTION πΈ
so CLUSTER CANCELSLOTMIGRATIONS cancels all in progress valkey-atomic-slot-migration(7) atomic slot migrations that were initiated through valkey-cluster-migrateslots(7) CLUSTER MIGRATESLOTS.
and here's the important part, bestie, don't skip this β only slot migrations initiated on this node get cancelled. if this node is the target of a slot migration, then the cancellation has to be performed on the source node instead. it's giving "you can't cancel somebody else's party from the wrong house" π«Ά
π« lowkey crucial: wrong node = nothing happens. check where the migration started, fr fr.
π COMPLEXITY π
O(N), where N is the number of slot migration operations being cancelled. so the more migrations you're shutting down, the more work it is. math is math. β¨
π₯ ACL CATEGORIES π₯
@admin@dangerous@slow
yes she's @dangerous. she said what she said. π
π¦ HISTORY π¦
- Available since:
9.0.0
baby of the family, freshly dropped. π±
π SEE ALSO π
asking(3valkey)cluster(3valkey)cluster-addslots(3valkey)cluster-addslotsrange(3valkey)cluster-bumpepoch(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-migrateslots(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)
the whole cluster clique, together at last. squad goals π«Άβ¨
and that's the whole page, bestie!! π this was Valkey 9.0.0, dated 2025-10-21, manual section 3valkey β love her, read her, cancel those migrations responsibly. mwah π
ππ¦
π¦ 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