-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Improve load balancing behavior for prefix cache-aware routing #3930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
santhnm2
merged 47 commits into
NVIDIA:main
from
santhnm2:prefix_caching_load_balancing
Mar 26, 2026
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
73c9dd1
Improve load balancing behavior for prefix cache-aware routing
santhnm2 bd16146
Linting
santhnm2 2a04323
Add prioritization for idle ranks
santhnm2 9b49d98
Linting
santhnm2 79cf6a7
Fix tests
santhnm2 cdbc032
Fix tests
santhnm2 e1c457e
Fix tests
santhnm2 7792b15
Fix tests
santhnm2 097b4b4
Add scoring function
santhnm2 0a90d39
Linting
santhnm2 12b79c0
Typo
santhnm2 a941be3
Add vectorized operations
santhnm2 0f59faf
Add hash_rank_table.py
santhnm2 f3f8151
Linting
santhnm2 0a7d380
Update pending count decrement
santhnm2 2f5c5d4
Merge remote-tracking branch 'upstream/main' into prefix_caching_load…
santhnm2 3b37d2e
Make round robin just do round robin
santhnm2 76d9b4a
Linting
santhnm2 21787fd
Merge remote-tracking branch 'upstream/main' into prefix_caching_load…
santhnm2 4ca3e8d
Address review feedback
santhnm2 2ec13c6
Linting
santhnm2 a08ef34
Update comments
santhnm2 e80b5bf
Add add_rank functionality
santhnm2 e443bdb
Add max_timestamps
santhnm2 8c215f6
Linting
santhnm2 48fca8d
Simplify policy
santhnm2 cf940b0
Linting
santhnm2 93eee30
Update hash table tests
santhnm2 6551751
Merge remote-tracking branch 'upstream/main' into prefix_caching_load…
santhnm2 c91fd84
Merge remote-tracking branch 'upstream/main' into prefix_caching_load…
santhnm2 877a0bb
Add assertion on max_requests
santhnm2 c7dee8e
Add compaction interval
santhnm2 fb832af
Linting
santhnm2 4d99149
Simplify compaction
santhnm2 cf4396d
Store initial capacity
santhnm2 8496e84
Merge remote-tracking branch 'upstream/main' into prefix_caching_load…
santhnm2 d38f6d9
Remove unused arg
santhnm2 085adf5
Merge remote-tracking branch 'upstream/main' into prefix_caching_load…
santhnm2 b7d1484
Merge remote-tracking branch 'upstream/main' into prefix_caching_load…
santhnm2 03cbe39
Remove hash rank table and simplify
santhnm2 b0b4bd6
Merge with main
santhnm2 e5bd157
Merge remote-tracking branch 'upstream/main' into prefix_caching_load…
santhnm2 e4b2c17
Fix tests
santhnm2 f3e03ad
Remove nested for loop
santhnm2 d2acb7a
Merge with main
santhnm2 9df482c
Merge remote-tracking branch 'upstream/main' into prefix_caching_load…
santhnm2 9228d8f
Fix tests
santhnm2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.