bundles/postgresql: more cache, please

This commit is contained in:
Franzi 2023-06-03 13:21:23 +02:00
parent 5b9ce2faa1
commit 712454c1e3
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -24,6 +24,7 @@ defaults = {
'shared_buffers': 128,
'temp_buffers': 8,
'slow_query_log_sec': 0,
'cache_size': 256,
},
}

View file

@ -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"]

View file

@ -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': {