[WIP] feat(router): add engine-pressure-aware scheduling - #32535
Open
yangbodong22011 wants to merge 2 commits into
Open
yangbodong22011 wants to merge 2 commits into
yangbodong22011 wants to merge 2 commits into
Conversation
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
yangbodong22011
requested review from
CatherineSue,
Fridge003,
HaiShaw,
JustinTong0323,
Kangyan-Zhou,
Ying1123,
bingxche,
hnyls2002,
ishandhanani,
ispobock,
merrymercy,
slin1237,
sogalin,
xiezhq-hermann and
yctseng0211
as code owners
August 4, 2026 08:54
yangbodong22011
force-pushed
the
feature-load-pressure-model
branch
from
August 4, 2026 09:50
07002d4 to
e4deef8
Compare
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.
Motivation
Define Engine pressure-aware scheduling independently so it can be reviewed while the LoadMonitor dependency remains in #32510.
This is a stacked WIP that depends on #32510. No #32510 implementation is included in this PR.
Modifications
load_basedcandidates using inverse-pressure weightsAccuracy Tests
Not applicable. This change affects Router backend selection, not model execution or output accuracy.
Speed Tests and Profiling
Pressure scoring is O(1) per candidate and weighted selection is O(n). No request body buffering or model-path synchronization is added.
Tests
Validated after applying this patch to the exact #32510 head (
5528529ab3):cargo fmt --all -- --checkcargo clippy --all-targets -- -D warningsThe standalone WIP intentionally does not compile until #32510 provides
AggregateLoadandPolicyCandidate.Checklist
CI States
Latest PR Test (Base): ✅ Run #30912391345
Latest PR Test (Extra): ❌ Run #30912390880