FATAL: remaining connection slots are reserved for non-replication superuser connections - Support - Assistance technique - DHIS2 Community
Dear community experts, We have 7 dhis2 running on a lxc based installation (postgres 13). We have 256GB Ram. We are very often getting FATAL: remaining connection slots are reserved for non-replication superuser connections these days. We have seen an old post from 2014 around the same topic so we tried max_connections = 1000 in postgres conf, just to test it out, still we get this error very often. Do you have any suggestions on fine-tuning this configuration.
postgresql - How to disable replication_slot on postgres - Stack ...
postgres=# CREATE SUBSCRIPTION sync CONNECTION 'dbname=postgres host=localhost port=5432' PUBLICATION sync WITH (synchronous_commit = 'on'); NOTICE: created replication slot "sync" on publisher CREATE SUBSCRIPTION.
PostgreSQL Documentation: max_replication_slots parameter
Postgres comes with built-in support for replication via publications and replication slots. Refer to the Concepts and terms section to learn how replication works.
