Monitoring & Performance
Monitoring & Performance
Watching it run, tuning it, and what breaks in production.
Watching it run, tuning it, and what breaks in production.
Sections
- 11.1Monitoringpg_stat views, logs, Prometheus & Grafana
- 11.2Performance Tuningpg_stat_statements, connection pooling, memory settings
- 11.3Production Failure ScenariosBloat, lock storms, replication lag, OOM
- 11.42Load Testing with pgbenchFinding the cluster's limit, the bottleneck nobody expected, what PgBouncer changes, and how far replicas scale reads
- 11.52Failure DrillsLosing etcd, cutting the primary off the network, a dead replica holding WAL, and a full disk, with writers running
- 11.6Monitoring the ClusterThirteen scrape targets, nineteen alerts with tests, and the dashboard, with each threshold traced to a lab
- 11.7Self-testSelf-test