In this article
Batch size alone cannot explain latency drift; preserve bounded input, output and execution-mode composition without tenant labels.
The diagnostic situation
Batch sizes remain stable after a serving slowdown, so the incident is attributed to a GPU regression. The batches now contain longer prefills alongside shorter decode steps. A count of participating requests conceals the changed work composition. Adding customer names to labels would create another problem without directly measuring the execution mix that matters.
Why the observation changes meaning
Continuous batching changes membership as requests progress. Equal request counts need not mean equal token work, phase mix or memory pressure. vLLM phase metrics describe selected timing populations, not a universal per-batch cost model. Correlation with composition can suggest a mechanism, but it cannot establish that one workload class caused every latency change in a shared scheduler.
Define the instrumentation contract
Define bounded cohorts from non-content characteristics such as prepared input-length bands, generation mode and phase. Keep the boundaries and preprocessing version stable. Record aggregate composition for the relevant execution window or safe batch record. Avoid full prompts, tenant identifiers and unique request IDs as metric dimensions. Distinguish missing composition telemetry from a genuinely empty class.
A bounded verification procedure
Construct synthetic traffic profiles with the same admitted request count but different prepared-length and phase mixes. Preserve model release, arrival timing and output bounds. Compare composition observations with queue, prefill and decode distributions. Reintroduce the original mix as a control. State whether instrumentation can observe actual batch membership or only a window-level approximation from independent request records.
Evidence required for acceptance
Acceptance evidence includes cohort definitions, input preparation identity, raw control schedule and observed distributions. Show coverage for requests whose composition fields are unavailable. Compare within compatible cohorts before interpreting the aggregate change. If latency shifts while composition remains comparable, retain that counterexample; the protocol must not force every incident into a workload-explanation narrative.
Failure cases and limits
Length bands can still reveal sensitive patterns in small populations, and aggregation is not an automatic anonymity guarantee. Apply access and retention rules appropriate to the deployment. The result is a bounded explanatory dataset, not a performance prediction or a claim of deterministic batch invariance. Hardware, kernels, cache state and scheduling policy can still change latency independently.
Primary references and related reading
Batch size alone cannot explain latency drift; preserve bounded input, output and execution-mode composition without tenant labels. vLLM metrics design; OpenTelemetry common attribute specification.
The proposed investigation of batch composition bounded cohorts is not an executed deployment benchmark. Related reading: Why temperature zero is not enough for deterministic SGLang output; Continuous batching: why concurrent requests change GPU value.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.