I am seing those errors in cloud sql Postgres logs.
Its a small 1 cpu, 4Gb of ram instance yet this is a bit troublesome.
I do not see any max_connections
in the customizable flags that could allow me to bypass this error.
The app is a simple Django service with very little queries and load not even exposed to the public.
The immediate solution is for me to start using db connection pooling with pgbouncer or a Django app but that adds up a bit of complexity.
max_connections
-----------------
100
Do we have a way to increase this number?
PS: After digging a bit it seems to come from the use of gevent workers with gunicorn. It was stable < 20 connections before that.
Nevertheless, in case of traffic surge it would be good to know if max_connections
can be controlled.