You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: After node failovers, our RedisCluster clients sometimes fail to reconnect to the cluster. When we run test failovers on our cluster (only failing over one primary node one time), usually clients are able to reconnect after a short period of ConnectionError/TimeoutErrors. However, when we do node type upgrades, for example, or any other type of action that will cause all nodes in a cluster to failover, the clients persistently 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>. We also see persistent TimeoutError when this happens. Our Elasticache redis cluster instances are running redis engine 6.X. We are wondering if we are configuring the client wrong in some way. The client only gets initialized once so we are not creating new clients/connections for each redis command.
Example of how we're initializing the client:
Same type of use case is explained in the mentioned above issue and possible resolutions are provided.
Closing this issue for now. Please feel free to reopen it if further assistance is needed.
Version: redis-py version 5.0.4
Platform: Python 3.9
Description: After node failovers, our RedisCluster clients sometimes fail to reconnect to the cluster. When we run test failovers on our cluster (only failing over one primary node one time), usually clients are able to reconnect after a short period of ConnectionError/TimeoutErrors. However, when we do node type upgrades, for example, or any other type of action that will cause all nodes in a cluster to failover, the clients persistently 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>
. We also see persistent TimeoutError when this happens. Our Elasticache redis cluster instances are running redis engine 6.X. We are wondering if we are configuring the client wrong in some way. The client only gets initialized once so we are not creating new clients/connections for each redis command.Example of how we're initializing the client:
Are there any other params to the client that we need to include? I was wondering if
dynamic_startup_nodes
could have something to do with the issue.The text was updated successfully, but these errors were encountered: