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

Use lower connection pool defaults ⬇️ #65

Open
tomchristie opened this issue Nov 17, 2019 · 0 comments
Open

Use lower connection pool defaults ⬇️ #65

tomchristie opened this issue Nov 17, 2019 · 0 comments

Comments

@tomchristie
Copy link
Member

Right now we're using the default settings for the connection pool with asyncpg.
This ends up being 10 connections per worker process.
We're running 2 worker processes, so holding onto 20 database connections.
This just happens to also be the maximum number of allowed postgres connection against a Hobby-tier database, so when we run migrations we're now getting a failure with "Too many connections".

@tomchristie tomchristie changed the title Use lower connection pool defaults Use lower connection pool defaults ⬇️ Nov 17, 2019
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

No branches or pull requests

1 participant