May 2018
Intermediate to advanced
576 pages
30h 25m
English
Any questions of the type Why is this different today from what it was last week? are much easier to answer if you have some kind of historical data collection setup.
Tools such as Cacti or Munin (for monitoring general server characteristics such as CPU and RAM usage, disk I/O, network traffic, and load average) are very useful to see what has changed recently, and to try to correlate these changes with the observed performance of some database operations.
Also, collecting historical statistics data from pg_stat_* tables, whether daily, hourly, or even every five minutes if you have enough disk space, is also very useful for detecting possible causes of sudden changes or a gradual degradation in performance.
If you are gathering ...