09:14, Tuesday
The pager goes off for Northstar Ledger's reporting API. Customers download their daily finance reports from GET /reports, and its p99 has gone from 34ms to 812ms. The error rate hasn't moved from 0.2%, but 23% of report downloads are timing out in the web app, and support has 146 complaints before lunch.
Late on Monday someone added a report filter to the endpoint. This morning's deploy got the blame first. The database is taking connections and CPU sits at 41%.
You have 45 minutes to reproduce it, look at what the database is doing, make the smallest safe fix, and check the number customers feel. Don't drop or rebuild the reports table.
What's running
The starter has the API and a PostgreSQL table seeded with 5,000,000 reports, a stand-in for the much bigger production table. make load sends Tuesday's report traffic at it. How you'd roll an index out safely in production, and how you'd watch it, go in the postmortem.