Repository navigation
Conversation
Propose safe retries before the first byte and transparent mid-stream migration of streaming requests when a vLLM engine fails. Refs vllm-project#855 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Punit Vara <[email protected]>
punitvara
requested review from
ApostaC,
YuhanLiu11 and
ruizhang0101
as code owners
November 10, 2026 10:22
24 tasks
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a design proposal to make the router resilient to vLLM engine failures through safe retries and mid-stream migration. The review feedback suggests several improvements to the proposal: implementing safeguards for passive health ejection to prevent cascading failures, resolving an inconsistency between token and character limits in the text buffer, documenting the impact of migration on stateful sampling parameters like presence and frequency penalties, and adopting a concrete strategy for approximate usage accounting in Phase 1.
- Add a max-ejected-fraction safeguard to passive ejection - Bound the migration buffer by delivered tokens, not characters - Document penalty history reset and exclude penalized requests in Phase 1 - Adopt a concrete usage accounting scheme for Phase 1 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Punit Vara <[email protected]>
…m-project#939 - Add related work (vllm-project#939, vllm-project#984, vllm-project#1164, vllm-project#1115, vllm-project#876) - Drop --retry-on-backend-5xx and request_retries_total; reuse vllm-project#939 - Re-scope Phase 1a to stall detection and passive ejection - Require new settings in the dynamic config - Replace line-number reference with function names Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Punit Vara <[email protected]>
Contributor
Author
|
@ruizhang0101 Can you please review this proposal ? |
Contributor
Author
|
@ruizhang0101 Can you please review this ? |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #855
Summary
RFC for the roadmap item "(P0) Request migration when the vLLM instance fails" (#855). This PR is proposal-only.
Today the router can only recover from an engine failure that happens before any response bytes are sent. After streaming starts, an engine failure cuts the client's stream, a backend
5xxis passed through instead of retried, and a hung engine is never detected (ClientTimeout(total=None)).What is proposed
5xxbefore the first byte, full retry of non-streaming requests, an inter-chunk stall timeout, passive ejection of failing engines, and metrics.prompt + delivered textfor completions,continue_final_messagefor chat) and rewrites ids and usage so the client sees one coherent stream.n>1, structured output, tool calls.Open questions (also listed in the RFC)
continue_final_messageand token-id resume on the pinned versions.500before the first byte be retried by default?Related: #996 (priority routing, a migrated request keeps its priority), #876 (router-side queuing, re-admission is a follow-up).
-swhen doinggit commit[Feat])🤖 Generated with Claude Code