Observability Signals Outages Before They Happen: Lessons from MySQL
summary
Most MySQL incidents begin as slow, unnoticed trends rather than sudden crashes, so tracking specific signals matters: count of full table scans, redundant/unused indexes, percentage of temporary tables on disk (acceptable <10%, warning 10–20%, temp tables >50% critical), sort_merge_passes, InnoDB row lock waits and wait time, connection utilization and threads running, redo log checkpoint age relative to the redo log async flush point (75% danger, 87.5% halts), and buffer pool hit ratio (ideally 99–100%). A lightweight Grafana dashboard fed from Prometheus source scores health from 10 with 0.2/0.5/2-point deductions and successfully flags pre-failure states so teams can add/drop indexes, rewrite queries, tune buffers, or increase redo/log sizes before users notice.
AI-written summary · about
chapters (10)
- 0:00Introduction and motivation
- 2:51Why databases need health checks
- 4:58Key metrics for MySQL health
- 11:42Temporary tables and disk usage
- 16:46Lock contention and connections
- 23:56Redo log capacity and performance
- 27:07Buffer pool efficiency
- 33:33Health scoring system
- 37:26Actions for unhealthy systems
- 40:40Q&A
