Commit graph

4 commits

Author SHA1 Message Date
Kevin Fenzi
4b27b2774f postgresql_server: enable auto_explain and set to 30s
This will log an explain for any query that takes more than 30s.
We likely will need to lower it to get the slow heavy queries that are
hitting koji's db.

This does require a restart, but after this we can change the min
duration with just a reload. If there are too many logs, we can set this
to -1 to never log.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2024-01-27 13:14:41 -08:00
Kevin Fenzi
b0117bb64e db-koji01: crank settings to 10.5
bump up various stats to try and handle load better.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-12-16 09:15:01 -08:00
Kevin Fenzi
48a207abc1 db-koji01: Some adjustments to avoid any outages
Using the 'fix outage' clause in freeze here. ;)

Basically adjust db-koji01 to use more memory and avoid
saturating i/o. With these settings, page loads look faster
and i/o is not saturated. We should try adding more cpus and such,
but that will require a reboot, so avoiding for now.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-08-26 10:46:03 -07:00
Kevin Fenzi
eb3801edc7 postgresql_server: split out postgres15 config and tweak
db-koji01 is our only postgresql 15 install so far, but split out the
config from the 12 one we are using on RHEL8 to avoid making changes
there.

Also, lets try tweaking things:
- I am bumping cpus up to 88
- Tweak max workers/etc
- Try a higher i/o level since this db server is running on a virthost
  with ssds.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-06-02 17:59:12 -07:00