You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 16, 2020. It is now read-only.
I see that right now, DatabaseConnectionPoolConfig.maximumConnections is hardcoded to 10 by default.
It would be nice if this number could dynamically scale at startup based on something like:
database maximum available connections / number of workers (cores?)
My database knowledge is rusty, but they all support some kind of connection reporting, right?, ie for Postgres:
select max_conn,used,res_for_super,max_conn-used-res_for_super res_for_normal
from
(selectcount(*) used from pg_stat_activity) t1,
(select setting::int res_for_super from pg_settings where name=$$superuser_reserved_connections$$) t2,
(select setting::int max_conn from pg_settings where name=$$max_connections$$) t3