Skip to content

[rollout] feat: add per-replica session admission cap - #8

Open
FZYsheep wants to merge 4 commits into
verl-project:mainfrom
FZYsheep:feat/replica-concurrency
Open

FZYsheep wants to merge 4 commits into
verl-project:mainfrom
FZYsheep:feat/replica-concurrency

Conversation

@FZYsheep

@FZYsheep FZYsheep commented Nov 26, 2026 •

Copy link
Copy Markdown

Framework runner max_concurrent_sessions bounds whole-pool episode concurrency, while rollout_router.dynamic_overload_admission acts only as a soft KV placement preference that lags during off-GPU tool execution and falls back when every replica exceeds the threshold. During multi-version transitions, newly admitted sessions can pile onto the few replicas serving the newest weights.

Add an opt-in Router-owned per-replica session admission cap rollout_router.replica_concurrency.max_sessions (null by default, requiring no changes to uni_agent, verl, or Repack):

  • Gates new session route admission (bind_route and get_routable_version) once a replica reaches max_sessions live bound routes, while leaving same-version Repack destinations unconstrained.
  • Under same_version, advances to the lowest eligible version that still has session capacity and waits via RouteUnavailableError when all eligible replicas are full (including within ValidationRequestRouter checkpoint groups).
  • Under latest_version / colocate_async, preserves cohort quota for live sessions temporarily unbound across an update or pause while allowing them to rebind without deadlock on their next turn.

Validation

  • 2 focused tests (84 lines) in tests/test_replica_concurrency_on_cpu.py, plus 265 existing Router, Repack, validation, and train config CPU tests passed.
  • ruff check, ruff format --check, and git diff --check passed.

FZYsheep and others added 3 commits November 26, 2026 15:50
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…ssion cap

Co-authored-by: Cursor <cursoragent@cursor.com>
@FZYsheep FZYsheep changed the title [rollout] feat: add Router-owned per-replica concurrency caps [rollout] feat: add per-replica session admission cap Nov 26, 2026
… admission

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant