Unit 12 of 12 · about 5 hours · measure

Seeded incidents, runbooks, first-cause timelines and recovery load tests

The section checkpoint is met here: under saturation, cancellation, worker death and bad rollout, the learner still diagnoses from evidence and recovers cleanly.

You'll be able to

  • Diagnose one seeded performance incident and one seeded lifecycle or security incident from stored evidence alone.
  • Write runbooks with first-cause timelines that a second operator can execute.
  • Run saturation, recovery and rollback load tests and show capacity returning without state corruption.

Covers

Seeded performance and security incident diagnosisRunbooks and first-cause timelinesSaturation, recovery and rollback load tests
1

Read

In this order, only the parts listed

0 of 5 done

  1. Day 26 seeded regression and drain100 Days of LLM Inference - Days 22 to 26

    Part 2 Scenario B as the seeded performance incident (nominal p99 380, 420 and 820ms plus Gaussian noise, printed as 397, 417 and 815ms against the 500ms baseline with flat errors, rollback at 5%); Part 4 GracefulShutdown drain as the recovery procedure; Part 3 cost-per-million-tokens table for the recovery capacity plan

    Treat the notebook outputs as stored evidence for timeline practice. Derive your own gate numbers from your workload; the 500ms baseline is the notebook's, not yours.

  2. Degradation monitoring and post-incident questionsMachine Learning Systems, Volume 2 - Inference at Scale and Serving Fault Tolerance

    Graceful Degradation, Degradation monitoring and alerting: Table 17 action map with its four post-incident questions (root cause, fallback effectiveness, user impact, improvements) (page read 2026-10-14)

  3. Deployment health and cross-user failureMachine Learning Systems, Volume 2 - Inference at Scale and Serving Fault Tolerance

    Autoscaling and Global Infrastructure, Global model deployment: Table 48 Global Deployment Health Metrics; Load Balancing and Request Routing, Consistent hashing for stateful routing: War Story 1.1 (shared client state leaking responses across users, March 2023) as the security-timeline example (page read 2026-10-14)

  4. Project 103 troubleshooting runbook scaffoldAI Infrastructure Engineer Learning - Project 103 LLM Deployment

    Sections 5 (GPU cache and preemption signals), 6 (SSE drops and proxy timeouts), 7 (probe paths), 9 (scaling signals) and 10 (shed rule): use as runbook headings, and verify each command against your manifests before trusting it

  5. vLLM recovery evidencevLLM Production Metrics

    Recovery load-test evidence: vllm:num_requests_waiting and vllm:num_requests_running returning to baseline, vllm:kv_cache_usage_perc draining, latency histograms back inside SLO, and vllm:request_success by finished_reason accounting every in-flight request

2

Focus on

  • A timeline entry is a timestamp plus the metric or log line that proves it. Narrative without evidence is a story; the MLSys action-map questions (root cause, fallback value, impact, improvements) each need a cited reading.
  • First cause is the earliest evidenced deviation, not the proved root cause. Scenario B's first cause is a version-correlated p99 breach at the 5% step; the mechanism waits for a profile.
  • Recovery is declared on distributions returning inside bounds: p99, queue depth, KV usage and error classes, plus passing inference-health probes. Falling averages alone can hide a stuck tail.
  • Security incidents need isolation fixes, not capacity. A cache-timing prompt guess or a cross-user leak is closed by salting, scoping and key drills, and the timeline must show the attack stopped, not just the traffic.
Common mistakes · 3
  • Diagnosing from the live system instead of stored evidence. Live state has already moved on; the discipline is reconstructing from retained logs, metrics and traces only.
  • Writing a runbook only its author can run. Every step needs the literal command, the expected output and the abort condition, or the second operator improvises under pressure.
  • Closing a security incident on latency recovery. Prompt-leak and cross-tenant drills pass only with attack-stopped evidence: repeated probes after the fix that return no foreign bytes.
3

Try it yourself

Closed-book, before checking anything

Take the day26 Scenario B outputs as stored evidence. Write the timeline (first anomaly, gate breach, rollback decision), name the first cause with the metric that proves it, and list one blind spot the stored evidence cannot answer.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.Scenario B's errors stay flat while p99 breaches at the 5% step. What is the first cause, and what remains unknown?Answer

    First cause: version-correlated tail regression in the new build at 5% traffic, evidenced by the printed p99 of 815ms (nominal 820ms) against the 750ms gate with flat errors. Unknown: the mechanism (decode path, template, config) until a profile separates them.

  2. 2.What declares the recovery load test passed?Answer

    Saturation, then rollback and drain, then waiting and running counts back to baseline, KV usage drained, latency histograms inside SLO, every in-flight request accounted by finished reason, and inference-health probes passing.

  3. 3.What does the MLSys War Story 1.1 timeline teach about shared state?Answer

    Shared client and pool state turned one user's response into another's: isolation of caches, pools and keys is a correctness boundary, and cross-user drills belong in the fault campaign.

  4. 4.A runbook step says to restart the slow replica. What is missing?Answer

    The literal command, the expected output, the abort condition if output differs, and the evidence to retain. Without those the second operator cannot execute or audit the step.

5

Practice

  • 100 Days day26: seeded diagnosis and recovery

    Scenario B as stored evidence for a first-cause timeline with one named blind spot; Part 4 GracefulShutdown drain plus the Part 3 capacity table as the executed recovery with costed capacity

    Write the timeline before re-reading the scenario code. Then run the drain and show waiting, running and KV evidence returning to baseline.

You're done when

Your Scenario B timeline cites evidence per entry with one blind spot, and your recovery run shows distributions back inside bounds with every request accounted.

Only when you can do this without notes.

Leads to

Notes

Resources · 4 for this unit, 9 more in the section
  • vLLM Production MetricsvLLM Project · required

    Define every selected queue, cache, phase and request metric, check histogram buckets and measure exporter overhead. Add model version, cancellation, rejection, quality sample and tenant-safe trace fields in the surrounding service.

  • Machine Learning Systems, Volume 2 - Inference at Scale and Serving Fault ToleranceHarvard (Vijay Janapa Reddi) · required

    Read "Load Balancing and Request Routing", "Multi-Tenancy and Isolation" and "Autoscaling and Global Infrastructure" in Inference at Scale, then "Serving Fault Tolerance" and "Graceful Degradation" in the Fault Tolerance chapter.

  • 100 Days of LLM Inference - Days 22 to 26Elizabeth Thomas · support

    Use the container, autoscaling, routing, capacity and zero-downtime notebooks as small operational simulations. Replace calendar order and fixed scale targets with the stage checkpoint and your hardware limits.

  • AI Infrastructure Engineer Learning - Project 103 LLM DeploymentAI Infra Curriculum · support

    Use its Docker, API, monitoring, Kubernetes and cost files as scaffolding only. Check its resource assumptions against your own model and GPU, and rerun any benchmark before reusing a result.

Also in this section

  • vLLM Online Serving, Architecture and Production MetricsvLLM Project · primary

    Trace the API server, engine core, scheduler, KV manager and model runner, then map documented metrics to your SLIs. The link is pinned to v0.31.0; add the auth, tenant, quality and rollout controls the engine leaves to you.

  • Hands-On LLM Serving and Optimization - Chapters 3 and 4, serving system designChi Wang and Peiheng Hu (O'Reilly) · required

    Read Chapter 3 (an online service from scratch, batching with streaming, multi-model trade-offs) and the enterprise-architecture part of Chapter 4. Convert the designs into explicit request, model-lifecycle and failure state machines.

  • Inference Engineering - Chapter 7, ProductionPhilip Kiely (Baseten Books) · support

    Read Chapter 7 for containers, autoscaling, cold starts, routing and queueing, zero-downtime deployment, cost estimation and client-side streaming. Skip the vendor section at its end.

  • Gateway API Inference ExtensionKubernetes SIG Network · required

    Study model-aware routing, endpoint selection and operational integration. Use it for architecture and an optional local deployment only after the service passes lifecycle and failure tests without Kubernetes.

  • SGLang documentation - Production MetricsSGLang Project · support

    Compare its metric names and phase boundaries with vLLM's, so your dashboards do not depend on one engine's vocabulary.

  • AI Systems Performance Engineering - Production Inference LabsChris Fregly · required

    Use Chapter 16 monitoring, cache health, capacity planning and load-test utilities, then Chapter 17 routing only if distributed. Add process death, overload and bad-version cases that the performance pairs do not cover.

  • LLM Inference Systems Laboratory - Operations and FailureRoadmap-Final · support

    Complete production gateway, isolation, telemetry, canary, drain, rollback and fault campaigns. Store first-cause timelines and revise runbooks from observed blind spots.

  • OpenAI API Reference - streaming, auth, rate limits and request IDsOpenAI · reference

    Read the chat streaming event shape with the [DONE] terminator, bearer auth, rate-limit headers, and x-request-id with caller-supplied X-Client-Request-Id. vLLM is the implementation under test; use this only for the contract it claims compatibility with.

  • vLLM Multimodal Inputs - media validation, fetch policy and cache identityvLLM Project · reference

    Read Online Serving for image, video and audio inputs: --allowed-media-domains, fetch timeouts, --limit-mm-per-prompt, local-media path restriction, and media UUIDs for cache identity. The link is pinned to v0.31.0.