DBAtlas · Database operations atlas

MOVED: MOVED slot ip:port (cluster redirect)

Redis

What does it mean?

In Redis Cluster, the hash slot holding the requested key belongs to another node. The server permanently redirects the client to the correct node. This is a redirect rather than an error.

Why does it happen?

A client that is not cluster-aware sends a request to the wrong node, slots have been redistributed between nodes (resharding), or the slot map cached by the client is stale.

How to fix it

Use a cluster-aware client library; these follow the MOVED reply automatically, redirect to the correct node and update the slot map. Use the -c flag when connecting with redis-cli. Make sure your client refreshes the slot topology periodically (CLUSTER SLOTS/SHARDS).

Open in DBAtlas →

More from this engine