Repository navigation
refactor: delegate engine state and operations to RolloutServerGroup - #1606
Merged
Merged
Conversation
- Remove redundant all_rollout_engines/nodes_per_engine/num_new_engines from RolloutManager; delegate to RolloutServerGroup fields. - Move recover/offload/onload into RolloutServerGroup so it owns all engine lifecycle operations. - Update RolloutHealthMonitor to take server_group directly instead of rollout_manager. - RolloutManager now only handles coordination (health monitor pause/resume, returning lock).
- Rename RolloutServerGroup to EngineGroup: a group of homogeneous engines sharing the same tp_size / nodes_per_engine / pg. - Add RolloutServer: a model served behind a shared router, containing one or more EngineGroups. Corresponds to one entry in the future --sglang-config YAML. - RolloutServer aggregates engines/num_new_engines across all groups and delegates recover/offload/onload to each group. - RolloutManager.server_group renamed to RolloutManager.server. - RolloutHealthMonitor now takes EngineGroup directly (per-group health checking), preparing for heterogeneous multi-group support.
- _start_router now returns (router_ip, router_port) instead of mutating args directly. - RolloutServer stores router_ip and router_port as fields (the authoritative source of router info). - start_rollout_server writes back to args for backward compat (SGLangEngine, rollout functions, examples still read from args). - Prepares for multi-model where each RolloutServer has its own router.
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.
No description provided.