arXiv:2611.08684cs.AINov 2026

Manuscript Offprint

arXiv:2611.08684

Cancellation Is Not Enough: What Retries Leave Behind in an Overloaded LLM Engine

Xindan Zhang, Fei Wang

ABSTRACT

Clients and proxies in front of an LLM engine retry calls that time out. After a transient overload, these retries can keep the engine from recovering even when calls arrive below its capacity. Since the engine may keep computing for clients that have left, propagating cancellation looks like the natural remedy. In this paper, we test it on vLLM with overload experiments on three open models, and with scheduler traces of one that follow each client attempt to the execution it creates in the engine. We find that with retries on, cancellation alone did not restore service in any run, and only 12–38% of the calls that arrived after the overload were delivered. The traces suggest why: retries that vLLM ran typically started prefill less than half a second before they timed out. Executions that vLLM later aborted took 79–85% of the prompt tokens it computed, and vLLM's prompt-token counter missed a third to half of all computed prompt tokens. A retry budget restored service by shedding retries but left many of the overload's calls undelivered. Request coalescing delivered every call from the overload onward, some late, unless cancellation had already aborted the running execution. Overload controls should thus be judged by the executions that retries add and the calls that clients receive.

1 INTRODUCTION

Agents now carry out long tasks by calling LLM endpoints, and spend most of a task waiting on those calls [1]. When the engine behind an endpoint is overloaded, calls queue in front of it and answers come late. A client that has waited past the timeout gives up on the attempt, closes its connection and sends the call again. The OpenAI Python SDK does so twice by default [2]. Giving up, however, does not always stop the engine. In production LLM services, frontends have returned timeout errors for calls that their backends went on to finish [3]. Since the engine is still working on the call when its retry arrives, it starts the same work over again.

Consider a client that sends a prompt of about 12,000 tokens to an overloaded vLLM engine [4], gives up at its 120-s deadline and sends the call again. What this retry costs depends on what happens to the engine's work for the first attempt, which we call its execution. If the disconnect does not reach the engine, the execution runs on with no one waiting and the retry starts a second one. If the disconnect propagates, vLLM aborts the execution, and the retry creates a new one that processes the prompt again, except for what vLLM's prefix cache still holds. If a proxy attaches the retry to the running execution, the retry adds no execution. Since the first of these fates keeps the engine busy for no one, propagating cancellation looks like its natural remedy.

Figure

Figure 1. One run of Qwen2.5-7B-Instruct per setting of retries and cancellation. With retries on, delivery falls to zero early in the hold, and without them service returns. A run ends once the client has no call outstanding, though vLLM may still hold executions with no client waiting.

We test this expectation on Qwen2.5-7B-Instruct [5] served by vLLM 0.30.0 [6] on one H100 GPU (Figure 1). In each run, calls arrive at a rate of 0.6 times the engine's calibrated capacity C^\hat{C}, except during a 107-s pulse at 2.7 C^\hat{C}. We call the 720 s after the pulse the hold. A call is delivered if the client receives its complete response within 840 s of its planned arrival. Service recovers once nearly every new call is again delivered within 120 s during the hold. With retries and cancellation both off, service recovered 480–540 s after the pulse. With retries on and cancellation off, none of the hold's calls was delivered. With retries on, propagating

1^{1}University of Toronto 2^{2}University of British Columbia Okanagan.

cancellation alone improved delivery but did not restore service in any run.

Several ingredients of this failure are well studied. Retries that keep a system overloaded after its trigger has passed cause metastable failures [7], [8]. That retries alone can keep an engine overloaded follows from arithmetic. Calls arriving at 0.6 C^\hat{C} that each make four attempts, as our client's do, offer 2.4 C^\hat{C} of executions, more than twice what the engine can complete. Retry budgets and request coalescing are established ways to limit retry load [9–11], and inference schedulers drop or reject work early under overload [12], [13]. LLM gateways and APIs already let a resubmitted call reattach to its running or stored result, or a client resume a dropped stream [14], [15]. Cancelling the tasks that cause resource contention mitigates overload in applications [16]. In vLLM, however, work already issued to the GPU runs on after an agent aborts a request to replace it [17]. But where does an LLM engine's work go once timed-out attempts are cancelled? And which calls do retry budgets and coalescing deliver?

In this paper, we measure what client retries leave behind in an overloaded vLLM engine. On Qwen2.5-7B-Instruct, we link each client attempt to vLLM's scheduler trace of its execution to see where the engine's prompt work goes. On this model and two other open models, we compare recovery and delivery under cancellation, retry budgets and coalescing. On this model alone, we also test queue caps and deferred cancellation. A load generator replays a synthetic trace through a proxy that propagates or withholds cancellation and can budget or coalesce retries (Section 3).

We report three main results. First, we show that with retries on, propagating cancellation alone did not restore service in any of our runs (Sections 4 and 5). After the same pulse, all three models delivered none of the hold's calls with retries on and cancellation off, and 13–38% with both on. With retries off, all three recovered within the hold. Traces of Qwen2.5-7B-Instruct suggest why cancellation did not restore service, even though every recorded abort reached vLLM within half a second of the client's departure. Our client sends a retry within 3 s of giving up, but the retries that vLLM ran typically started prefill less than half a second before their own deadline. Meanwhile, few executions completed, and retries kept refilling vLLM's waiting queue as vLLM aborted their predecessors. This is consistent with a loop in which the waiting queue holds about one deadline's worth of attempts, so a retry reaches the engine only as its own deadline arrives, and its abort sends its call to the back of the queue once more.

Second, on Qwen2.5-7B-Instruct, we trace where the engine's prompt work went (Section 5). With cancellation on, executions that vLLM later aborted took 79–85% of it. About a quarter to a half of that work was already on the GPU when the abort came and could not be stopped.

vLLM's own prompt-token counter missed a third to half of all the prompt work, because it records a prompt only when the first output token appears. This rule is documented [18], and we quantify what it misses under retries and cancellation. On all three models with retries and cancellation on, this counter also fell short of vLLM's count of admitted prompt tokens during the hold, by about a fifth to two thirds.

Finally, we compare existing overload controls by the calls they deliver (Section 6). On all three models with cancellation off, a retry budget and coalescing both restored service. The budget shed attempts and delivered about as many pulse calls as no control did. Coalescing attached retries to the execution their call already had in the engine, and delivered every pulse and hold call (some late) and more calls within 120 s than the budget. On Qwen2.5-7B-Instruct, a small cap on vLLM's queue and a cap at the proxy that serves the newest executions first also restored service by shedding attempts. On the same model, cancellation that took effect at once aborted executions before their retries could attach, and coalescing no longer restored service. Deferring cancellation by 10 s let retries attach again, service returned, and the proxy never had to cancel. With cancellation on, the retry budget delivered more of the hold's later calls within 120 s than deferred cancellation, which delivered every pulse call. These results suggest that where every call must be answered, as when an agent cannot finish its task without it, a proxy should attach a retry whenever its call still has an execution in the engine, and keep that execution alive long enough for the retry to arrive (Section 6.6).

References (38)