Skip to content
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

DM-39186: Redo Redis connection configuration #755

Merged
merged 4 commits into from
May 15, 2023
Merged

DM-39186: Redo Redis connection configuration #755

merged 4 commits into from
May 15, 2023

Conversation

rra
Copy link
Member

@rra rra commented May 12, 2023

Since adding more connection retry configuration, we have been seeing periodic "Connection closed by server" errors in all environments. One hypothesis is that setting socket_keepalive is keeping the connection open longer than the Redis server permits, and it's changing the error in a way that's causing this problem. Try dropping that configuration.

Stop setting an explicit list of exceptions on which to retry, since the default seems to be fine.

rra added 4 commits May 15, 2023 12:08
Since adding more connection retry configuration, we have been seeing
periodic "Connection closed by server" errors in all environments.
One hypothesis is that setting socket_keepalive is keeping the
connection open longer than the Redis server permits, and it's changing
the error in a way that's causing this problem. Try dropping that
configuration.

Stop setting an explicit list of exceptions on which to retry, since
the default seems to be fine.
We not infrequently have tests fail because the server run via
uvicorn for Selenium testing takes more than 5s to start. Try
increasing the timeout to 10s to see if this helps.
Do more Redis connection retries in the hope that we can survive
a Redis upgrade without failing a bunch of requests.
@rra rra merged commit fdcd274 into main May 15, 2023
@rra rra deleted the tickets/DM-39186 branch May 15, 2023 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant