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)
want the client to know when a failover happens about updated node information. how to do this properly?
mohit sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.