Skip to content

Terminal labs · 02 · Intermediate · about 15 min

The outage that outlived its cause

Alert firingThe page is yours: click the terminal to start
  1. To do: 1. Checkout works again: 99% of checkouts succeed for 20 s
  2. To do: 2. Stop the multiplication: at most 4 calls to payments per checkout, worst case
  3. To do: 3. Make the next blip survivable: backoff with jitter wherever retries remain, and a circuit breaker on shop-api → payments
oncall@shop-prod-1click to type
Checkout errors
100%
-60 snow
  • 5xx92%
  • target1.0%
Calls per second
5,400/s
-60 snow
  • arriving at payments5,187/s
  • payments capacity600/s
  • users150/s
Payments p99
2200 ms
-60 snow
  • p992000 ms
Payments pods ready
6
-60 snow
  • 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.

0 sent · 0 failed
Grafana CloudBuildBreak live demo APIlast 30 minutes · loading…
Recent errors and warnings

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.