Skip to content

fix(pd): align handshake deadlines with resource wait budgets - #1715

Open
shihaobai wants to merge 1 commit into
mainfrom
bsh/pd-handshake-budget
Open

shihaobai wants to merge 1 commit into
mainfrom
bsh/pd-handshake-budget

Conversation

@shihaobai

Copy link
Copy Markdown
Collaborator

A 180-second PD handshake can expire while Decode is still within its configured resource wait. Derive the enclosing deadlines from the current segment's two resource-wait stages, leaving time for errors to propagate. A 200-second resource budget gives Master/Prefill deadlines of 415/430 seconds; negative budgets retain disconnect and cancellation checks. Busy retry is unchanged.

Validation on main 9640f76: 168 CPU tests pass. In a 32-request control-plane contention reproduction with slots released at 190 seconds and busy retry=0, main times out all 32 at 180 seconds; the fix lets all 32 continue. This probe uses the real wait/allocation loops with controlled slot availability, without model traffic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant