M05.04·Operations·Capstone·2 hours·2 min read
Serving SLO Playbook
Design the measurement and rollout plan for an inference endpoint with real latency targets, capacity limits, and rollback rules.
- Module
- Serving an LLM
- Objective
- Turn inference metrics into an operational launch plan with clear go/no-go thresholds.
Prompt
You own a new LLM endpoint. Product wants:
P50 time to first token under 600 ms
P95 time to first token under 1.8 s
P95 end-to-end latency under 12 s for 1K output tokens
error rate under 0.5%
no OOM during normal traffic
Traffic has three request classes:
- Chat: short prompt, short output, latency sensitive.
- Analysis: medium prompt, long output, throughput sensitive.
- Document QA: long prompt, medium output, memory sensitive.
Deliverable
Write a launch playbook with:
- Load-test matrix: prompt length, output length, concurrency, request mix.
- Metrics: latency, throughput, queueing, live tokens, KV memory, GPU utilization, error modes.
- Dashboards: the five charts you would watch during launch.
- Admission controls: limits that prevent one workload from harming the others.
- Rollback rules: exact thresholds that trigger rollback.
- Follow-up experiments: what to tune after the endpoint is stable.
Constraints
- You cannot buy more GPUs for the first launch.
- You can tune scheduler limits.
- You can split traffic by request class.
- You can reduce max context for one class if the product accepts it.
Acceptance criteria
A strong playbook:
- Uses percentiles instead of averages for latency.
- Separates queue wait from model execution.
- Treats live tokens and KV memory as first-class capacity metrics.
- Has rollback rules specific enough that an on-call engineer does not need interpretation.
- Does not optimize throughput by silently breaking chat latency.
Stretch
Add a "brownout" plan: what features or request classes degrade first when traffic exceeds capacity?
Debrief
Inference engineering does not end at a benchmark. The endpoint only counts when it can be operated under load without guessing.