Limit Postgres max / idle connections #991
BoxBoxJason
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Limit Postgres max connections
Problem definition
I am running a self hosted instance with a docker setup, and a remote database.
For resources optimization (and constraints), I prefer setting a lower number of db connections for each app. So I set the limit to 2 (on the postgres server) because solidtime is supposed to have a very low throughput in my case.
Most of the time the app runs fine, but there is an error bubble that keeps showing up (every 10 seconds):
The action failed. Please try again later.on the UI.Also in the browser console I keep seeing 500 errors and uncaught exceptions
Suggestion
On most apps, there are two options that can be used:
DB_MAX_OPEN_CONNdefines it.DB_MAX_IDLE_CONNdefines it.I tried to look around but unfortunately I could not find anything about that in the documentation. Maybe it's already possible but is just missing documentation.
Could this be implemented & documented ?
Beta Was this translation helpful? Give feedback.
All reactions