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

Limit ASGI_THREADS value in Heroku #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

zachmullen
Copy link
Member

The default value is far too high and quickly exhausts postgres's default connection pool limit of 20 in Heroku.

This is related to the same cluster of Resonant PRs as #81

The default value is far too high and quickly exhausts postgres's default connection pool limit of 20 in Heroku.
@mvandenburgh
Copy link
Member

We might also consider using a connection pooler instead of limiting the number of python threads. There is a pgBouncer heroku buildpack.

One tradeoff is that pgbouncer requires another dyno. There may be other issues as well that I'm not aware of, but I wanted to at least bring this up. Most of this info I got from the article linked in this PR.

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.

2 participants