~/talk

Avoid PostgreSQL LWLock:buffer_content locks in Amazon Aurora: Tips and best practices

Talkat Percona Live 2022 · 2022-05-16..05-18· [databases]
links:none on file
links:none on file
slides:none on file

Shows a reproducible mitigation for LWLock:buffer_content contention on Aurora Postgres using a simulation (bash docker on Kubernetes) that mimics a last‑mile delivery workload at scales up to 96vCPUs, 768GiB, 30TB with ~10k commits and peaks at 50% CPU. Uses CloudWatch anomaly detection on db load non‑cpu and Performance Insights to find queries, then applies concrete fixes: drop unused/duplicate indexes, add partial indexes, partition large relations, move reads to replicas, and front with PG Bouncer / RDS Proxy; the suite reduces or removes the spikes.

AI-written summary · about

  1. 0:00Start
  2. 2:01Workload simulation
  3. 4:30Findings
  4. 5:48What is PostgreSQL buffer content lock?
  5. 12:11Monitor buffer content locks
  6. 14:19Minimize buffer content locks
  7. 14:51Keep frequently accessed data optimal
  8. 26:45Implement connection pooling
  9. 28:53Minimize connection churn
  10. 43:29Limit the database connections
  11. 47:30Key takeaways
~/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.