Exercise 8 of 8 · Incident response · About 20 min
A timeout, the recovery, and the window after
Use metrics, spans and logs to find a timed-out dependency, recover it, and verify a healthy rolling window.
Keep your stack running. In Codespaces, use labs/observability and the Ports tab for tool URLs; locally, use the extracted baodium-observability folder. Earlier exercises establish the signals used here.
Before you run it
Payment takes 2,200 ms but checkout waits 1,500 ms. Predict the customer response and whether payment might still complete.
Checkout starts failing
Make payment take 2,200 ms while checkout waits only 1,500 ms. Generate requests and examine the result before changing anything.
node lab.mjs fault timeout
node lab.mjs traffic 15Checkout returns HTTP 504. Traces and logs show which operation exceeded the caller’s wait; payment work may continue after that wait ends.
Help with this exercise
A successful configuration change does not erase past failures. Allow the evaluation window to move and inspect new samples before declaring recovery.
Need a hint or a troubleshooting path?
A successful configuration change does not erase past failures. Allow the evaluation window to move and inspect new samples before declaring recovery.
Check a common misconception
A successful configuration change proves the change was accepted. Recovery requires successful new requests and a recovered evaluation window.
Before you move on
- What to keep
- Build a short timeline: symptom, metric query and timestamp, trace ID, correlated log events, mitigation and reports/recovery.json.
- What to explain
- Use the caller deadline and downstream duration to justify the diagnosis. State what the evidence rules out and what remains uncertain.
- A question to take further
- Propose a prevention experiment involving deadlines, cancellation or concurrency limits, and specify how you would measure its effect.
Write what you found
Explain what you would monitor during the next rollout, and why simply increasing every timeout could increase in-flight work.
Stop the stack when you finish
Continue to the next exercise with the stack running. When finished, stop and remove only this lab’s Compose services and volumes.
node lab.mjs down