lettuce keeps reconnecting even when redis is unavailable #1659
Unanswered
devtravelport
asked this question in
Q&A
Replies: 1 comment 6 replies
-
The point of auto-reconnect is to bridging Redis unavailability and retry to connect until Redis is available again. You can disable reconnects entirely. Alternatively, if you have knowledge over when your server will be available again, you can implement a custom Delay to delay reconnect attempts. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello All, I am trying to make lettuce stop reconnect tries when redis is down. I tried adding autoReconnect(false) and pingBeforeActivateConnection(true) even than with 30 ms connection timeout, lettuce taking 10 secs to try establish a connection and throw connect timeout. My guess is its still trying to reconnect. I dont have much logs to catch lettuce behavior. Any inputs will be helpful here.
Beta Was this translation helpful? Give feedback.
All reactions