P99 TTFT spikes every Tuesday at 9am, order the triage steps
- 1Compare queue depth at 9am Tuesday vs the same hour on other weekdays
- 2Rule out upstream issues: LB latency, TLS handshake spikes, weekly cert renewal jobs
- 3Check the autoscaler ramp curve: did replicas come up before or after the traffic surge crossed threshold?
- 4Look at the input-length distribution for Tuesday-morning requests vs baseline (any 100k-token prompts?)
- 5Inspect noisy-neighbor signals on shared GPU nodes (SM-util variance, KV-block contention)
Triage cheapest signal first: queue depth and prompt-length distribution explain 80% of weekly-pattern TTFT spikes.
Picture a coffee shop that gets slammed every Tuesday at 9am. Before you tear apart the espresso machine, do the cheap checks. First, is the line at the door longer on Tuesdays? Second, is everyone suddenly ordering a 12-shot custom drink instead of a regular latte? Those two questions answer most cases. After that you can ask whether the barista was scheduled to arrive before or after the rush hit, whether someone else is using the same shared shelf for their stuff, or whether the front door's intercom is glitching. The order matters because some checks take a glance at a dashboard and others require pulling a barista off the line.
Detailed answer & concept explanation~6 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: the cheapest signal first principle + queue depth as the first check + input-length distribution as the second + autoscaler ramp diagnosis + when to escalate to noisy-neighbor and network checks.
Real products, models, and research that use this idea.
- vLLM and SGLang expose queue depth and waiting-request count on their /metrics endpoints, intended for autoscaler signals and exactly this kind of triage.
- Anthropic's, OpenAI's, and Together AI's status pages frequently note input length driven spikes around scheduled customer batch jobs.
- KEDA's external-metrics scalers in 2026 commonly autoscale LLM serving pods on queue depth or in-flight requests rather than CPU.
- Cursor and Anysphere have publicly discussed pre-scaling on-schedule for known business-hours traffic peaks rather than relying on reactive HPA.
- Datadog's LLM Observability product in 2026 surfaces P99 TTFT broken down by input-length bucket precisely because long prompts are the dominant tail driver.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you instrument to make this triage faster next time?
QIf queue depth is flat but TTFT still spikes on Tuesday morning, what does that rule in and out?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Jumping to the model itself or to GPU-level traces before checking queue depth and prompt-length distribution. Recurring time of week spikes are almost always a traffic-shape or autoscaler problem, not a model problem.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.