Repository navigation
Conversation
…he pool route directory A pool member's assignment snapshot no longer carries every route in the pool. A member asks the gateway for the owner of a route it does not own (RouteLookup/RouteOwner on the existing Attach stream) only when a sandbox runtime reaches it for that route, so a member's messages scale with its own sandboxes rather than with the pool. Closes #5783 Signed-off-by: divesh <dgude@nvidia.com>
Compatibility review (advisory)New or updated breaking changes; see the full report for all findings. 1. rust-sdk — No explicit risk acceptance foundWithin openshell_sdk::raw::proto::supervisor_host::v1, AssignmentSnapshot loses route_directory and the previously exhaustive HostMessage/HostGatewayMessage payload enums gain RouteLookup/RouteOwner variants.
Review details
Advisory review; publication gates are unchanged. |
This branch has not been deployed
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.
Summary
Supervisor updates no longer carry the cluster-wide route list. A shared supervisor asks the gateway for a route's owner only when a sandbox runtime reaches it for a route it doesn't own.
How it works
What each supervisor update carries:
flowchart LR subgraph Before G1[Gateway] -- "own sandboxes + every route in the pool<br/>(grows with the pool)" --> S1[Supervisor A] end subgraph After G2[Gateway] -- "own sandboxes only<br/>(at most 1024)" --> S2[Supervisor A] endWhen a sandbox runtime reaches a supervisor that doesn't own it:
Related Issue
Closes #5783
Changes
route_directoryfromAssignmentSnapshot(field reserved). A member's update now holds only its own sandboxes, so its size no longer grows with the pool.RouteLookup/RouteOwneron the existing Attach stream. The gateway answers from its in-memory pool view, with no DB read.Testing
cargo clippy -D warningson sandbox-backend, supervisor-control, supervisor, server, sandboxmise run proto:lintChecklist