MOVED: MOVED slot ip:port (cluster redirect)
RedisNe demek?
Redis Cluster'da, istenen anahtarın bulunduğu hash slot başka bir düğüme aittir. Sunucu istemciyi kalıcı olarak doğru düğüme yönlendirir. Bu bir hatadan çok bir yönlendirmedir.
Neden olur?
Cluster-aware olmayan bir istemcinin yanlış düğüme istek göndermesi, slot'ların düğümler arasında yeniden dağıtılmış olması (resharding) veya istemcinin önbelleğe aldığı slot haritasının güncel olmaması.
Nasıl çözülür?
Cluster'ı destekleyen (cluster-aware) bir istemci kütüphanesi kullanın; bunlar MOVED yanıtını otomatik izleyip doğru düğüme yönlendirir ve slot haritasını günceller. redis-cli ile bağlanırken -c bayrağını kullanın. İstemcinizin slot topolojisini periyodik olarak yenilediğinden emin olun (CLUSTER SLOTS/SHARDS).
Aynı motorda diğer kayıtlar
- BUSYBUSY Redis is busy running a script. You can only call SCRIPT KILL or SHUTDOWN NOSAVE
- MISCONFMISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk
- CROSSSLOTCROSSSLOT Keys in request don't hash to the same slot
- ASKASK slot ip:port (cluster redirect)
- NOSCRIPTNOSCRIPT No matching script. Please use EVAL
- EXECABORTEXECABORT Transaction discarded because of previous errors
- NOPERMNOPERM this user has no permissions to run the command or access one of the keys