changed: reduced default connection limit to 15

Reduced default connection limit to the pleroma database to 15.
This parameter is now configurable.
This commit is contained in:
Dan Anglin 2019-10-15 09:26:13 +01:00
parent b0ddbc30ad
commit 2cb1891456
No known key found for this signature in database
GPG key ID: 7AC2B18EC1D09F27
2 changed files with 2 additions and 1 deletions

View file

@ -16,6 +16,7 @@ pleroma_defaults:
db:
name: pleroma_db
user: pleroma
connLimit: 15
postgresServer:
pg_hba:
- type: local

View file

@ -81,7 +81,7 @@
- name: Postgres -- Ensuring that the database {{ pleroma.config.db.name }} exists.
become_user: postgres
postgresql_db:
conn_limit: "20"
conn_limit: "{{ pleroma.config.db.connLimit }}"
encoding: UTF-8
login_unix_socket: "{{ pleroma_postgres_unix_socket_dir }}"
name: "{{ pleroma.config.db.name }}"