Closed kasra-sheik closed 2 weeks ago
Given the stacktrace says you use the version 0.7.11
, I recommend you to use the latest version for redis-cluster-client and redis-clustering gems.
https://github.com/redis-rb/redis-cluster-client/releases
The old version has insufficient implementation to handle such errors after changing the cluster state.
Feel free to reopen this issue if the latest version still doesn't resolve it.
Thanks @supercaracal! Upgrading seemed to fix my connection errors.
I have an AWS Memory DB cluster that runs clustered Redis. The topology looks something similar to 2 shards each with 2 nodes.
AWS claims they can do online resharding so I recently brought down one of the shards and every client connection raised a
cannotConnectError
whenever a command was executed on that connection even long after the shard went offline. I would have expected the client to gracefully handle this on connection termination and after retrying the connection, they would get proxied to an online node to runCLUSTER NODES
on.Here is my config + stack trace. Any guidance or thoughts here?