Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RedisCluster client failing to reconnect to AWS Elasticache cluster after node failover #3310

Open
mohits1007 opened this issue Jul 10, 2024 · 0 comments

Comments

@mohits1007
Copy link

lib - redis py redis==5.0.0 python version 3.7 redis cluster - 1 shard, 2 nodes

when we do node failovers, the client cannot reconnect and throw RedisClusterException:Redis Cluster cannot be connected. Please provide at least one reachable node: <None, or some IP, Timeout connecting to server>.

creating redis cluster connection like this - client = redis.cluster.RedisCluster.from_url(url, read_from_replicas=True) Then using this client as a singleton object across application. want the client to know when a failover happens about updated node information. how to do this properly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant