Skip to content

perf(pd): retain bounded affinity for long cached prefixes - #1713

Open
shihaobai wants to merge 1 commit into
mainfrom
bsh/pd-long-prefix-affinity
Open

shihaobai wants to merge 1 commit into
mainfrom
bsh/pd-long-prefix-affinity

Conversation

@shihaobai

Copy link
Copy Markdown
Collaborator

An idle Prefill node currently overrides even a strong long-prefix cache hint. For matches of at least 64K characters and 80% of the prompt, compare the cached node's uncached-suffix cost against other nodes using the existing adaptive load threshold. Overloaded cache nodes still shed load; short or low-hit requests keep their current routing.

Validated on main 9640f76: 118 CPU routing, shared-RPC and request-lifecycle tests pass, including 16 new cases for idle/busy peers, overload, threshold boundaries and unavailable cache nodes. This changes routing estimates only; end-to-end TPM impact remains to be measured.

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