too many clients are connected
Last updated
Last updated
Log messages around the central topic of too many clients are connected
Even panic and tracebacks may appear in the logs / output of fylr, like: (shortened here)
There are already more connections from fylr to the PostgreSQL database service than the configured limit in PostgreSQL.
We recommend to set the limits in fylr and postgres to the same number.
An example can bee seen here:
You may also need to find the correct limit for your situation.
In fylr yaml configuration: fylr.db.maxOpenConns
If you use this, fylr will try to stay below the new limit and the errors may go away.
If you use a limit far below what your hardware can handle, you may slow fylr down.
If you increase this limit, the error might go away or appear less frequent.
But PostgreSQL may consume more memory.
In add a line like -c max_connections=200
. 200 is just an example. The line shall be below the with command
for the postgresql service. The default seems to be 100.