-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Many database issues after enabling connection pools #4456
Comments
Sentry Issue: COURTLISTENER-84X
|
I performed some tests related to these issues and was able to reproduce the following error locally:
by setting the DB However, @blancoramiro confirmed that this value is set to 0 for the production DB, meaning it's disabled, and connections shouldn't be terminated by the DB server. Therefore, the issue could be caused by something else, which requires further investigation. I believe using the dev DB and simulating concurrent load to help identify the root cause and find a solution. |
Great, thanks. We could just ignore this, but it does seem like a good opportunity to help the community by being one of the first to solve it in the open. I look forward to learning what you discover. |
We got a lot of errors in Sentry after enabling connection pools in Django 5.1 with psycopg3. The one below is representative, and I'll see if I can link others.
For now, I'm just going to disable connection pools until we have a theory of what's going on.
We're using gunicorn with the following command:
And the custom worker we have there is:
We use postgres in AWS RDS.
OperationalError: couldn't get a connection after 30.00 sec
Sentry Issue: COURTLISTENER-85G
The text was updated successfully, but these errors were encountered: