CLUSTER-...GRATIONS(3valkey)

πŸ“¦ version 9.0.6, in fedora 44

πŸ’– 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 🌈

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