Increase PostgreSQL limits for matrix

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2022-11-03 01:18:59 +01:00
parent 839fa1f700
commit 1005ffd65d
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -239,8 +239,8 @@ EOF
resources { resources {
cpu = 500 cpu = 500
memory = 128 memory = 1024
memory_max = 256 memory_max = 1536
} }
template { template {
@ -248,8 +248,8 @@ EOF
alter user synapse with encrypted password '{{ with secret "kv/data/matrix/synapse" }}{{ .Data.data.pgpass }}{{ end }}'; alter user synapse with encrypted password '{{ with secret "kv/data/matrix/synapse" }}{{ .Data.data.pgpass }}{{ end }}';
\c synapse; \c synapse;
SELECT setval('application_services_txn_id_seq', ( SELECT setval('application_services_txn_id_seq', (
SELECT GREATEST(MAX(txn_id), 0) FROM application_services_txns SELECT GREATEST(MAX(txn_id), 0) FROM application_services_txns
)); ));
EOF EOF
destination = "secrets/init.sql" destination = "secrets/init.sql"
} }