Drill: Edge Trouble
- Advanced
- 25 min
- Drill
- Chaos Gym
- Incident response
- nginx
- Reverse proxy
Overview
Tonight's trouble is at Kestrel's edge: nginx on port 80, the only door a customer ever uses, in front of the orders API on 127.0.0.1:8000. The health panel watches four things a customer does: load the site, browse, place an order and look one up.
The API may be perfectly healthy while customers see errors, and the reverse. Every time, the first question is which layer answered? Status codes, response bodies and the two sides' logs each tell you something the other cannot.
When a probe goes red, declare an incident and pick the area you suspect, then find the cause and repair it. The probes decide when the service is back; you do not mark it fixed. Keep notes as you go, and afterwards write a short postmortem (symptom, root cause, fix); the debrief then shows what was really injected, so you can compare.
What done looks like
- Work out which layer produced an error: nginx or the API
- Repair a reverse-proxy configuration safely and reload it
- Keep downtime inside a tight error budget
- Write a postmortem: symptom, root cause, fix
Before you start
- Drill: Kestrel On Call first, or equivalent Linux, nginx and PostgreSQL familiarity
- Assessed drill: no hints; personal best only