[__matrix_synapse] Wire parameters for PGSQL pool size

This commit is contained in:
fnux 2021-02-24 18:50:01 +01:00
parent 7983e341e5
commit e10ae4d0a7
No known key found for this signature in database
GPG key ID: 4502C902C00A1E12
6 changed files with 15 additions and 1 deletions

View file

@ -835,6 +835,8 @@ database:
host: "${DATABASE_HOST:?}" host: "${DATABASE_HOST:?}"
user: "${DATABASE_USER:?}" user: "${DATABASE_USER:?}"
password: "$DATABASE_PASSWORD" password: "$DATABASE_PASSWORD"
cp_min: ${DATABASE_CP_MIN:?}
cp_min: ${DATABASE_CP_MAX:?}
EOF EOF
;; ;;
*) *)

View file

@ -39,6 +39,12 @@ database-user
database-password database-password
Database password, only used with PostgresSQL. Database password, only used with PostgresSQL.
database-connection-pool-min
The minimum number of connections in pool, defaults to 3.
database-connection-pool-max
The maximum number of connections in pool, defaults to 5.
ldap-uri ldap-uri
Address of your LDAP server. Address of your LDAP server.

View file

@ -143,8 +143,10 @@ DATABASE_NAME=$(cat "$__object/parameter/database-name")
DATABASE_HOST=$(cat "$__object/parameter/database-host") DATABASE_HOST=$(cat "$__object/parameter/database-host")
DATABASE_USER=$(cat "$__object/parameter/database-user") DATABASE_USER=$(cat "$__object/parameter/database-user")
DATABASE_PASSWORD=$(cat "$__object/parameter/database-password") DATABASE_PASSWORD=$(cat "$__object/parameter/database-password")
DATABASE_CP_MIN=$(cat "$__object/parameter/database-connection-pool-min")
DATABASE_CP_MAX=$(cat "$__object/parameter/database-connection-pool-max")
export DATABASE_ENGINE DATABASE_NAME DATABASE_HOST DATABASE_USER \ export DATABASE_ENGINE DATABASE_NAME DATABASE_HOST DATABASE_USER \
DATABASE_PASSWORD DATABASE_PASSWORD DATABASE_CP_MIN DATABASE_CP_MAX
# LDAP-based authentication. # LDAP-based authentication.
if [ -f "$__object/parameter/enable-ldap-auth" ]; then if [ -f "$__object/parameter/enable-ldap-auth" ]; then

View file

@ -1,6 +1,8 @@
database-host database-host
database-user database-user
database-password database-password
database-connection-pool-min
database-connection-pool-max
ldap-uri ldap-uri
ldap-base-dn ldap-base-dn
ldap-uid-attribute ldap-uid-attribute