Skip to content

refactor: delegate engine state and operations to RolloutServerGroup - #1606

Merged
zhuzilin merged 3 commits into
mainfrom
zhuzilin/rollout-use-server-group
Feb 21, 2026
Merged

zhuzilin merged 3 commits into
mainfrom
zhuzilin/rollout-use-server-group

Conversation

@zhuzilin

Copy link
Copy Markdown
Contributor

No description provided.

- 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.
@zhuzilin
zhuzilin merged commit 7cc343f into main Feb 21, 2026
15 of 16 checks passed
@zhuzilin
zhuzilin deleted the zhuzilin/rollout-use-server-group branch February 21, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant