Reshard a Redis Cluster by moving hash slots between nodes

domain: redis · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Identify current slot distribution: redis-cli -h <any-node> -p <port> cluster nodes | awk '{print $1, $2, $9}' to see which node owns which slot ranges
  2. Use the built-in reshard helper: redis-cli --cluster reshard <host>:<port> and follow the prompts to specify how many slots to move, the source node ID, and the destination node ID
  3. For rebalancing after adding nodes: redis-cli --cluster rebalance <host>:<port> --cluster-use-empty-masters which distributes slots evenly and moves keys automatically
  4. During migration, each slot is moved atomically (Redis 8.4 introduced Atomic Slot Migration for up to 30x faster migrations with lower latency spikes); on older versions, individual key migration uses MIGRATE internally
  5. Monitor progress: watch redis-cli --cluster check <host>:<port> — all slots should be assigned before declaring the reshard complete
  6. After resharding, verify key distribution with redis-cli --cluster info and check for any nodes in FAIL or PFAIL state

Known gotchas

Related routes

Reshard a MongoDB sharded collection with reshardCollection
mongodb · 6 steps · unrated
Trigger a manual Redis Cluster failover with CLUSTER FAILOVER for planned primary maintenance
redis.io · 5 steps · unrated
Use Redis as a distributed lock correctly
redis · 4 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans