~/talk

AutoVacuum - Tuning and Monitoring

Talkat Postgres Conference Orlando 2025 · 2025-03-18..03-21· [databases]
slides:none on file

Postgres autovacuum often leaves tables and indexes bloated until a restart or restore masks the problem; a practical fix is autovacuum_cost_delay 20ms→2ms (Postgres 12) which cuts a real-life 18GB table vacuum from 81 minutes to 8, and custom per-table tuning (even down to 3.3 minutes in one test) restores responsiveness. Monitoring uses collectd+graphite+grafana+timescale, tracks pending writes, write efficiency, and idle in transaction = cluster event horizon, and enforces per-table thresholds because vacuum full (and repack) is the only way to remove middle-page bloat.

AI-written summary · about

  1. 0:00Introduction
  2. 3:55Autovacuum tuning necessity
  3. 10:20Key autovacuum metrics
  4. 15:23Autovacuum settings overview
  5. 24:34Advanced monitoring tools
  6. 29:48Real-time autovacuum monitoring
  7. 34:01Hardware impact on autovacuum
  8. 40:27Table tuning strategies
  9. 43:19Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.