shared_buffers
and effective_cache_size
not tuned for machine
#218
Labels
bug
Something isn't working
shared_buffers
and effective_cache_size
not tuned for machine
#218
Steps to reproduce
Expected behavior
Some tuning is done to PostgreSQL based on machine constraints.
Actual behavior
The PostgreSQL defaults are used.
Per https://www.postgresql.org/docs/14/runtime-config-resource.html "If you have a dedicated database server with 1GB or more of RAM, a reasonable starting value for shared_buffers is 25% of the memory in your system. There are some workloads where even larger settings for shared_buffers are effective, but because PostgreSQL also relies on the operating system cache, it is unlikely that an allocation of more than 40% of RAM to shared_buffers will work better than a smaller amount. Larger settings for shared_buffers usually require a corresponding increase in max_wal_size, in order to spread out the process of writing large quantities of new or changed data over a longer period of time."
I'm not a PostgreSQL expert, and I'm not saying these are the only options that matter, obviously all tuning options will need to be considered.
Versions
Operating system: jammy
Juju CLI: 2.9.44
Juju agent: 2.9.44
Charm revision: 318
LXD: N/A, this is on OpenStack.
Log output
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: