-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Reconnecting blocks whole app. #1014
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 7 days if no further activity occurs, but feel free to re-open a closed issue if needed. |
Anyone has any ideas/clues how to prevent blocking? |
Sorry for the late response. You can set |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 7 days if no further activity occurs, but feel free to re-open a closed issue if needed. |
I'm testing the auto reconnect features of ioredis, and i've noticed that everytime ioredis looses connection to the redis server (non cluster, non sentinel), it blocks everything for 1 minute per ioredis request.
I've managed to cut that down to 1 second by tweaking
maxRetriesPerRequest = 1
andretryStrategy
to 1s minimum, but when my http request do 10-20-100 redis requests (unable to bundle those intomget
unfortunately) this slows down everything?Can i make ioredis reconnect in the background naively, without having to implement custom logic?
The text was updated successfully, but these errors were encountered: