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

Open SQL connection on demand only #21

Open
IlyaSemenov opened this issue May 22, 2020 · 0 comments
Open

Open SQL connection on demand only #21

IlyaSemenov opened this issue May 22, 2020 · 0 comments

Comments

@IlyaSemenov
Copy link

Currently, Jet Admin opens a SQL connection immediately on the app start. This is causing issues on high load projects.

For example, I'm running an auto scalable Google Cloud Run project with gunicorn and concurrency set to 2, and with 100 parallel threads hummering my web site, the number of PostgreSQL connections is 300+. Disabling Jet Admin drops down the number of connections to ~100. There is no load coming towards Jet Admin endpoint at all, it just eats up a connection in every thread.

Is it possible to have Jet Admin only open a SQL connection when there's need for it? Such as on a first request to the API?

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