diff --git a/bundles/postgresql/files/postgresql.conf b/bundles/postgresql/files/postgresql.conf index 56fa5af..7bcbe10 100644 --- a/bundles/postgresql/files/postgresql.conf +++ b/bundles/postgresql/files/postgresql.conf @@ -9,6 +9,7 @@ max_connections = ${max_connections} autovacuum_max_workers = ${autovacuum_max_workers} maintenance_work_mem = ${maintenance_work_mem}MB work_mem = ${work_mem}MB +effective_cache_size = ${cache_size}MB shared_buffers = ${shared_buffers}MB temp_buffers = ${temp_buffers}MB log_destination = syslog diff --git a/bundles/postgresql/metadata.py b/bundles/postgresql/metadata.py index fce9bb6..46b6718 100644 --- a/bundles/postgresql/metadata.py +++ b/bundles/postgresql/metadata.py @@ -24,6 +24,7 @@ defaults = { 'shared_buffers': 128, 'temp_buffers': 8, 'slow_query_log_sec': 0, + 'cache_size': 256, }, } diff --git a/nodes/htz-cloud.afra.toml b/nodes/htz-cloud.afra.toml index 5345ebb..14ef4b6 100644 --- a/nodes/htz-cloud.afra.toml +++ b/nodes/htz-cloud.afra.toml @@ -77,6 +77,8 @@ target = "http://127.0.0.1:20100/" [metadata.postgresql] version = "15" +work_mem = 1024 +cache_size = 2048 [[metadata.zfs.pools.tank.when_creating.config]] devices = ["/dev/disk/by-id/scsi-0HC_Volume_32207877"] diff --git a/nodes/rx300.py b/nodes/rx300.py index dd189d3..96dbd8f 100644 --- a/nodes/rx300.py +++ b/nodes/rx300.py @@ -475,6 +475,10 @@ nodes['rx300'] = { 'postgresql': { 'version': '13', 'max_connections': 500, + 'autovacuum_max_workers': 12, + 'maintenance_work_mem': 2*1024, + 'work_mem': 8*1024, + 'cache_size': 32*1024, }, 'radicale': { 'domain': 'radicale.franzi.business', @@ -563,7 +567,7 @@ nodes['rx300'] = { }, 'zfs': { 'module_options': { - 'zfs_arc_max_gb': 16, + 'zfs_arc_max_gb': 48, }, 'pools': { 'tank': {