Repository navigation
[kv_offload] Emit tier-owned BlockStored events from FS/OBJ secondary tiers #47923
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
orozery
merged 14 commits into
vllm-project:main
from
Change72:feat/secondary-tier-kv-events
Jul 10, 2026
+433
−9
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
22cd6cd
[kv_offload] Emit tier-owned BlockStored events from FS/OBJ secondary…
Change72 9a9425e
[kv_offload] Document the obj secondary tier configuration
Change72 a658956
[kv_offload] Rename tier opt-in key to enable_kv_cache_events
Change72 1d0a6c6
[kv_offload] Rename tier opt-in key to enable_secondary_tier_events
Change72 e4d60b4
[kv_offload] Address review: medium classvar, enable_kv_events name
Change72 2d51ddf
[kv_offload] Annotate event list in cascade test for mypy
Change72 f289ea3
[Docs] Smooth KV events wording in offloading usage guide
Change72 d3e6f04
[Docs] Align obj tier io_threads wording with the docstring
Change72 7bf5549
[Docs] Clarify obj endpoint_override vs scheme in usage guide
Change72 3e89281
[Docs] Tidy obj key layout sentence in usage guide
Change72 7af4388
[Docs] Note identical-key guarantee for shared obj buckets
Change72 870f142
Merge branch 'main' into feat/secondary-tier-kv-events
orozery f9f89ac
Merge branch 'main' into feat/secondary-tier-kv-events
Change72 b9e590a
Merge branch 'main' into feat/secondary-tier-kv-events
Change72 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we differentiate local disk vs shared (remote) storage?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. #38260 mentions both local and shared storage, but the current tier API does not model that distinction: the same fs tier can use a node-local path or a shared PVC, and vLLM cannot infer the scope from root_dir.
My preference is to keep
FS / OBJas storage-tier kinds, consistent withGPU / CPU. A local/shared medium alone would still not identify which instances share the same root or bucket namespace; that requires deployment knowledge. If you want reachability encoded in the wire contract, I think it should come from explicit configuration or metadata rather than being inferred from the tier type. Does that match what you had in mind?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had some thoughts on adding a per-tier configuration that would tag the tier is either "LOCAL" or "REMOTE".
This will be useful for P2P, when you query a remote peer, you only care for LOCAL tiers.
Given that we add an explicit configuration for that, we can propagate this in the KVEvents.
We can do so via the medium field, via a new field, or via a configuration endpoint (decoupled from specific KVEvents).
Anyhow, we should think ahead to avoid a case where we want to rename one of the mediums.
Given that we fixate on "FS", we can later add e.g. "FS_REMOTE".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I've also been working on an internal P2P implementation recently, and the LOCAL/REMOTE distinction is definitely needed there. I'll follow the P2P progress and update the event path in a follow-up once it's ready.