Skip to content

[1/3]refactor mesh worker registry into layered pools#1448

Draft
Yuechguo wants to merge 1 commit into
mainfrom
yuechguo/worker_and_policy
Draft

[1/3]refactor mesh worker registry into layered pools#1448
Yuechguo wants to merge 1 commit into
mainfrom
yuechguo/worker_and_policy

Conversation

@Yuechguo

@Yuechguo Yuechguo commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Motivation

Rework the worker registry from a flat model index into a layered model -> framework -> role pool structure. This keeps lock-free snapshot reads while allowing direct lookup of regular, PD prefill, and PD decode workers per framework.
Introduce Framework and PoolRole as first-class worker metadata, replacing the older RuntimeType naming. Worker creation now derives framework from discovered or configured runtime metadata, with HTTP workers defaulting to Anonymous and gRPC workers defaulting to Sglang when unspecified. Update worker builders, update flows, config mapping, and placement test support to preserve framework metadata through worker lifecycle operations. Add registry tests covering direct bucket access, anonymous defaults, and pool cleanup after worker removal.

Test Plan

for atomesh mocker test
image

Rework the worker registry from a flat model index into a layered
model -> framework -> role pool structure. This keeps lock-free snapshot reads
while allowing direct lookup of regular, PD prefill, and PD decode workers per
framework.
Introduce Framework and PoolRole as first-class worker metadata, replacing the
older RuntimeType naming. Worker creation now derives framework from discovered
or configured runtime metadata, with HTTP workers defaulting to Anonymous and
gRPC workers defaulting to Sglang when unspecified.
Update worker builders, update flows, config mapping, and placement test support
to preserve framework metadata through worker lifecycle operations. Add registry
tests covering direct bucket access, anonymous defaults, and pool cleanup after
worker removal.
@zufayu
zufayu requested a review from yhl-amd July 6, 2026 02:01
@zufayu
zufayu removed the request for review from yhl-amd July 13, 2026 02:24
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