Self-test
Check your understanding
Self-test8 questions
The first load test said two replicas served reads no faster than the primary. What was the real bottleneck, and how was it found?
Direct connections peaked at 32 clients and got slower with more. Why, and what did PgBouncer change at 128 clients?
With a new connection per transaction, PgBouncer barely helped. What was saturated?
With etcd's majority lost and failsafe_mode off, a healthy primary demoted itself. Why is that the intended behaviour?
A replica was down while the primary wrote WAL. What protects the primary's disk, and what happens to the replica when that limit is reached?
Why does the slot alert only consider slots on the primary?
A disk filled up with 139 MB of data and 144 MB of WAL. What failed, what kept working, and how would a full WAL disk differ?
- Design question
Choose five alerts you would page someone for at 3 a.m. and five you would only look at in the morning. Justify the split.