postgres: Tune effective_cache_size upwards, to 75%.

The previous 10/16ths is an odd value; various suggestions are around
75% of RAM, and in practice this is closer to what is observed.
This commit is contained in:
Alex Vandiver
2025-05-09 19:08:54 -04:00
committed by Tim Abbott
parent 49c307e136
commit 8850c3f85c

View File

@@ -12,7 +12,7 @@ class zulip::profile::postgresql {
}
$work_mem = zulipconf('postgresql', 'work_mem', sprintf('%dMB', $total_postgres_memory_mb / 256))
$shared_buffers = zulipconf('postgresql', 'shared_buffers', sprintf('%dMB', $total_postgres_memory_mb / 4))
$effective_cache_size = zulipconf('postgresql', 'effective_cache_size', sprintf('%dMB', $total_postgres_memory_mb * 10 / 16))
$effective_cache_size = zulipconf('postgresql', 'effective_cache_size', sprintf('%dMB', $total_postgres_memory_mb * 3 / 4))
$maintenance_work_mem = zulipconf('postgresql', 'maintenance_work_mem', sprintf('%dMB', $total_postgres_memory_mb / 16))
$wal_buffers = zulipconf('postgresql', 'wal_buffers', undef)
$random_page_cost = zulipconf('postgresql', 'random_page_cost', undef)