bundles/postgresql: more cache, please
This commit is contained in:
parent
5b9ce2faa1
commit
712454c1e3
4 changed files with 9 additions and 1 deletions
|
@ -9,6 +9,7 @@ max_connections = ${max_connections}
|
||||||
autovacuum_max_workers = ${autovacuum_max_workers}
|
autovacuum_max_workers = ${autovacuum_max_workers}
|
||||||
maintenance_work_mem = ${maintenance_work_mem}MB
|
maintenance_work_mem = ${maintenance_work_mem}MB
|
||||||
work_mem = ${work_mem}MB
|
work_mem = ${work_mem}MB
|
||||||
|
effective_cache_size = ${cache_size}MB
|
||||||
shared_buffers = ${shared_buffers}MB
|
shared_buffers = ${shared_buffers}MB
|
||||||
temp_buffers = ${temp_buffers}MB
|
temp_buffers = ${temp_buffers}MB
|
||||||
log_destination = syslog
|
log_destination = syslog
|
||||||
|
|
|
@ -24,6 +24,7 @@ defaults = {
|
||||||
'shared_buffers': 128,
|
'shared_buffers': 128,
|
||||||
'temp_buffers': 8,
|
'temp_buffers': 8,
|
||||||
'slow_query_log_sec': 0,
|
'slow_query_log_sec': 0,
|
||||||
|
'cache_size': 256,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,6 +77,8 @@ target = "http://127.0.0.1:20100/"
|
||||||
|
|
||||||
[metadata.postgresql]
|
[metadata.postgresql]
|
||||||
version = "15"
|
version = "15"
|
||||||
|
work_mem = 1024
|
||||||
|
cache_size = 2048
|
||||||
|
|
||||||
[[metadata.zfs.pools.tank.when_creating.config]]
|
[[metadata.zfs.pools.tank.when_creating.config]]
|
||||||
devices = ["/dev/disk/by-id/scsi-0HC_Volume_32207877"]
|
devices = ["/dev/disk/by-id/scsi-0HC_Volume_32207877"]
|
||||||
|
|
|
@ -475,6 +475,10 @@ nodes['rx300'] = {
|
||||||
'postgresql': {
|
'postgresql': {
|
||||||
'version': '13',
|
'version': '13',
|
||||||
'max_connections': 500,
|
'max_connections': 500,
|
||||||
|
'autovacuum_max_workers': 12,
|
||||||
|
'maintenance_work_mem': 2*1024,
|
||||||
|
'work_mem': 8*1024,
|
||||||
|
'cache_size': 32*1024,
|
||||||
},
|
},
|
||||||
'radicale': {
|
'radicale': {
|
||||||
'domain': 'radicale.franzi.business',
|
'domain': 'radicale.franzi.business',
|
||||||
|
@ -563,7 +567,7 @@ nodes['rx300'] = {
|
||||||
},
|
},
|
||||||
'zfs': {
|
'zfs': {
|
||||||
'module_options': {
|
'module_options': {
|
||||||
'zfs_arc_max_gb': 16,
|
'zfs_arc_max_gb': 48,
|
||||||
},
|
},
|
||||||
'pools': {
|
'pools': {
|
||||||
'tank': {
|
'tank': {
|
||||||
|
|
Loading…
Reference in a new issue