diff --git a/apps/auth/postgresql.conf b/apps/auth/postgresql.conf index 595885eae28dc1eef6d0d1508837f119490b9fdd..8746d21e454ea7cc9971549d4d4d587706c3ad59 100644 --- a/apps/auth/postgresql.conf +++ b/apps/auth/postgresql.conf @@ -1,6 +1,6 @@ # Base settings listen_addresses = '*' -max_connections = 100 +max_connections = 20 shared_buffers = 128MB dynamic_shared_memory_type = posix diff --git a/apps/data/postgresql.conf b/apps/data/postgresql.conf index 595885eae28dc1eef6d0d1508837f119490b9fdd..8746d21e454ea7cc9971549d4d4d587706c3ad59 100644 --- a/apps/data/postgresql.conf +++ b/apps/data/postgresql.conf @@ -1,6 +1,6 @@ # Base settings listen_addresses = '*' -max_connections = 100 +max_connections = 20 shared_buffers = 128MB dynamic_shared_memory_type = posix diff --git a/apps/docs/postgresql.conf b/apps/docs/postgresql.conf index d34e29de0d9844ce14edcc9c9b25efafee440f70..8746d21e454ea7cc9971549d4d4d587706c3ad59 100644 --- a/apps/docs/postgresql.conf +++ b/apps/docs/postgresql.conf @@ -1,12 +1,12 @@ # Base settings listen_addresses = '*' -max_connections = 100 +max_connections = 20 shared_buffers = 128MB dynamic_shared_memory_type = posix # Backups wal_level = archive -max_wal_senders = 1 +max_wal_senders = 2 archive_mode = on archive_command = 'test ! -f /wal/%f && cp %p /wal/%f' diff --git a/apps/feeds/postgresql.conf b/apps/feeds/postgresql.conf index 15e00344d71743372532abe7b8c01320bd7152b7..8746d21e454ea7cc9971549d4d4d587706c3ad59 100644 --- a/apps/feeds/postgresql.conf +++ b/apps/feeds/postgresql.conf @@ -1,6 +1,6 @@ # Base settings listen_addresses = '*' -max_connections = 100 +max_connections = 20 shared_buffers = 128MB dynamic_shared_memory_type = posix @@ -23,3 +23,4 @@ default_text_search_config = 'pg_catalog.english' # Extended options shared_preload_libraries = 'pg_stat_statements' pg_stat_statements.track = all + diff --git a/apps/lemmy/postgresql.conf b/apps/lemmy/postgresql.conf index 3300a1b6929100e7cb99bef7a9b9d44b128ff607..8746d21e454ea7cc9971549d4d4d587706c3ad59 100644 --- a/apps/lemmy/postgresql.conf +++ b/apps/lemmy/postgresql.conf @@ -1,12 +1,12 @@ # Base settings listen_addresses = '*' -max_connections = 100 +max_connections = 20 shared_buffers = 128MB dynamic_shared_memory_type = posix # Backups wal_level = archive -max_wal_senders = 5 +max_wal_senders = 2 archive_mode = on archive_command = 'test ! -f /wal/%f && cp %p /wal/%f' diff --git a/apps/mastodon/postgresql.conf b/apps/mastodon/postgresql.conf index d34e29de0d9844ce14edcc9c9b25efafee440f70..8746d21e454ea7cc9971549d4d4d587706c3ad59 100644 --- a/apps/mastodon/postgresql.conf +++ b/apps/mastodon/postgresql.conf @@ -1,12 +1,12 @@ # Base settings listen_addresses = '*' -max_connections = 100 +max_connections = 20 shared_buffers = 128MB dynamic_shared_memory_type = posix # Backups wal_level = archive -max_wal_senders = 1 +max_wal_senders = 2 archive_mode = on archive_command = 'test ! -f /wal/%f && cp %p /wal/%f' diff --git a/apps/matrix/postgresql.conf b/apps/matrix/postgresql.conf index 2603ca4a43d1faa4bfddd972076dbed70c2d64a1..dccf420d5be189c44be3e5ccc140fb1a154c853c 100644 --- a/apps/matrix/postgresql.conf +++ b/apps/matrix/postgresql.conf @@ -2,12 +2,11 @@ listen_addresses = '*' max_connections = 20 shared_buffers = 512MB -work_mem = 64MB dynamic_shared_memory_type = posix # Backups wal_level = archive -max_wal_senders = 1 +max_wal_senders = 2 archive_mode = on archive_command = 'test ! -f /wal/%f && cp %p /wal/%f' diff --git a/apps/translate/postgresql.conf b/apps/translate/postgresql.conf index d34e29de0d9844ce14edcc9c9b25efafee440f70..8746d21e454ea7cc9971549d4d4d587706c3ad59 100644 --- a/apps/translate/postgresql.conf +++ b/apps/translate/postgresql.conf @@ -1,12 +1,12 @@ # Base settings listen_addresses = '*' -max_connections = 100 +max_connections = 20 shared_buffers = 128MB dynamic_shared_memory_type = posix # Backups wal_level = archive -max_wal_senders = 1 +max_wal_senders = 2 archive_mode = on archive_command = 'test ! -f /wal/%f && cp %p /wal/%f' diff --git a/apps/video/postgresql.conf b/apps/video/postgresql.conf index 3300a1b6929100e7cb99bef7a9b9d44b128ff607..8746d21e454ea7cc9971549d4d4d587706c3ad59 100644 --- a/apps/video/postgresql.conf +++ b/apps/video/postgresql.conf @@ -1,12 +1,12 @@ # Base settings listen_addresses = '*' -max_connections = 100 +max_connections = 20 shared_buffers = 128MB dynamic_shared_memory_type = posix # Backups wal_level = archive -max_wal_senders = 5 +max_wal_senders = 2 archive_mode = on archive_command = 'test ! -f /wal/%f && cp %p /wal/%f'