~/talk

Postgres Storytelling: What's going on with Synchronous Replication?

Talkat POSETTE: An Event for Postgres 2024 · 2024-06-11..06-13· [databases]
slides:none on file

Synchronous commits pile up because massive VACUUM activity on a 18 TB table produces huge volumes of WAL, trips max_wal_size and forces checkpoints so walreceiver stalls on filesystem work, producing about 400 SyncRep wait events. Investigation uses ss and perf to show walreceiver switching from fdatasync to heavy pwrite64 workload and slow WAL recycling/initialization. The practical fix is to disable wal_init_zero and wal_recycle, letting WAL files be created and acknowledged faster so SyncRep delays vanish.

AI-written summary · about

  1. 0:00Intro
  2. 2:35The problem
  3. 5:05Initial investigation of the problem
  4. 5:54Synchronous replication explained
  5. 11:10Why is there accumulation of sychronous replication events at a certain point
  6. 15:54Why were there these wait events
  7. 22:55The solution
~/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.