Terminal labs · 02 · Intermediate · about 15 min
The outage that outlived its cause
- To do: 1. Checkout works again: 99% of checkouts succeed for 20 s
- To do: 2. Stop the multiplication: at most 4 calls to payments per checkout, worst case
- To do: 3. Make the next blip survivable: backoff with jitter wherever retries remain, and a circuit breaker on shop-api → payments
- 5xx92%
- target1.0%
- arriving at payments5,187/s
- payments capacity600/s
- users150/s
- p992000 ms
- ready4
WARNpaymentsPOST /charges 503: queue full (512 waiting), rejecting · 5,241 calls/s arriving
WARNpaymentsrequest 5ccd0 finished after 2140 ms; caller had already gone (client closed request)
WARNshop-apiretrying POST payments/charges (attempt 2/4) after 0 ms: 503
WARNpaymentsPOST /charges 503: queue full (512 waiting), rejecting · 5,241 calls/s arriving
WARNshop-apiretrying POST payments/charges (attempt 3/4) after 0 ms: 503
ERRgatewayPOST /checkout 503 after 3 upstream attempts
WARNpaymentsPOST /charges 503: queue full (512 waiting), rejecting · 5,241 calls/s arriving
WARNpaymentsrequest 60aae finished after 2140 ms; caller had already gone (client closed request)
WARNshop-apiretrying POST payments/charges (attempt 4/4) after 0 ms: 503
WARNpaymentsPOST /charges 503: queue full (512 waiting), rejecting · 5,241 calls/s arriving
WARNshop-apiretrying POST payments/charges (attempt 2/4) after 0 ms: 503
ERRgatewayPOST /checkout 503 after 3 upstream attempts
WARNpaymentsPOST /charges 503: queue full (512 waiting), rejecting · 5,241 calls/s arriving
WARNpaymentsrequest 6488c finished after 2140 ms; caller had already gone (client closed request)
WARNshop-apiretrying POST payments/charges (attempt 3/4) after 0 ms: 503
WARNpaymentsPOST /charges 503: queue full (512 waiting), rejecting · 5,241 calls/s arriving
WARNshop-apiretrying POST payments/charges (attempt 4/4) after 0 ms: 503
ERRgatewayPOST /checkout 503 after 3 upstream attempts
WARNpaymentsPOST /charges 503: queue full (512 waiting), rejecting · 5,241 calls/s arriving
WARNpaymentsrequest 6866a finished after 2140 ms; caller had already gone (client closed request)
WARNshop-apiretrying POST payments/charges (attempt 2/4) after 0 ms: 503
WARNpaymentsPOST /charges 503: queue full (512 waiting), rejecting · 5,241 calls/s arriving
WARNshop-apiretrying POST payments/charges (attempt 3/4) after 0 ms: 503
ERRgatewayPOST /checkout 503 after 3 upstream attempts
WARNpaymentsPOST /charges 503: queue full (512 waiting), rejecting · 5,189 calls/s arriving
WARNpaymentsrequest 6c448 finished after 2140 ms; caller had already gone (client closed request)
WARNshop-apiretrying POST payments/charges (attempt 4/4) after 0 ms: 503
WARNpaymentsPOST /charges 503: queue full (512 waiting), rejecting · 5,187 calls/s arriving
WARNshop-apiretrying POST payments/charges (attempt 2/4) after 0 ms: 503
ERRgatewayPOST /checkout 503 after 3 upstream attempts
WARNpaymentsPOST /charges 503: queue full (512 waiting), rejecting · 5,187 calls/s arriving
WARNpaymentsrequest 70226 finished after 2140 ms; caller had already gone (client closed request)
WARNshop-apiretrying POST payments/charges (attempt 3/4) after 0 ms: 503
WARNpaymentsPOST /charges 503: queue full (512 waiting), rejecting · 5,187 calls/s arriving
WARNshop-apiretrying POST payments/charges (attempt 4/4) after 0 ms: 503
ERRgatewayPOST /checkout 503 after 3 upstream attempts
WARNkubeletpayments-7c9f4-2xkqp: Liveness probe failed: Get "http://10.0.3.14:8080/healthz": context deadline exceeded; restarting container
WARNpaymentsPOST /charges 503: queue full (512 waiting), rejecting · 5,187 calls/s arriving
WARNpaymentsrequest 74004 finished after 2140 ms; caller had already gone (client closed request)
WARNshop-apiretrying POST payments/charges (attempt 2/4) after 0 ms: 503
The real production dashboard
While you play, the lab sends a real checkout to the live API every 2 seconds with faults that match your incident: failing here means real PAYMENTS_FAILED errors there. This is that service's Grafana dashboard, live, with every learner's traffic. Fix the incident and watch its error rate fall within a minute or two.
Loading…
How this lab works
The shop, its three retrying layers and the payments service are a model running in your browser, one step per second: 150 checkouts a second from users, the calls each layer's retries add, payments' capacity and what happens to it under overload, liveness probes and a circuit breaker. Commands read and change that model, so the terminal, the charts, the logs and the trace always agree. Nothing is scripted to a single answer. Your best score is kept on this device only.