frontend: double the connection limit on PostgreSQL server

This needs better debugging, but our connection pooling is probably
pretty complicated (each WSGI daemon process can have 15 connections to
DB, 5+10 overflow).  And we have _many_ processes nowadays, while the
default connection limit is 100 in PostgreSQL.
This commit is contained in:
Pavel Raiskup 2022-05-30 14:36:33 +02:00
parent 618f0501d5
commit 9aa7120fee

View file

@ -109,6 +109,15 @@
tags:
- config
- name: set max_connections for PostgreSQL
lineinfile:
path: /var/lib/pgsql/data/postgresql.conf
regexp: '^max_connections ='
line: 'max_connections = 200'
notify: restart postgresql
tags:
- config
- name: install psqlrc file
copy:
content: |