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
It works but when I make another request, it says that the connection is closed. I read somewhere that is the intended behavior and you need to call cluster.connect() to restore the connection.
My question is how can I make sure that the connection is restored when another request is made? I could check if the cluster is connected on every request and if not, I will connect to it but that seems to be tedious. Is there a more elegant solution?
In summary, I want a to use the behavior of maxRetriesPerRequest in a clustered Redis.
The text was updated successfully, but these errors were encountered:
lueenavarro
changed the title
Cluster retry strategy
Cluster retry strategy and reconnection
Sep 29, 2021
In a single instance redis, there is an option maxRetriesPerRequest which works.
However, if I am using a cluster, the only thing that works is clusterRetryStrategy:
It works but when I make another request, it says that the connection is closed. I read somewhere that is the intended behavior and you need to call cluster.connect() to restore the connection.
My question is how can I make sure that the connection is restored when another request is made? I could check if the cluster is connected on every request and if not, I will connect to it but that seems to be tedious. Is there a more elegant solution?
In summary, I want a to use the behavior of maxRetriesPerRequest in a clustered Redis.
The text was updated successfully, but these errors were encountered: