[Core][Frontend] Bind KV-event publishers at port 0 and expose the bound endpoints (#55844)

Signed-off-by: aoshen02 <aoshen02@users.noreply.github.com>
Co-authored-by: mukeshbhandarkar <shell00035@gmail.com>
Co-authored-by: aoshen02 <aoshen02@users.noreply.github.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: aoshen02 <aoshen@inferact.ai>
This commit is contained in:
hangangqiang
2026-09-18 18:11:05 -07:00
committed by GitHub
co-authored by mukeshbhandarkar aoshen02 Claude Fable 5.1 aoshen02
parent 729ebac498
commit 90531daf6d
11 changed files with 282 additions and 14 deletions
@@ -54,3 +54,10 @@ async def get_server_load_metrics(request: Request):
async def show_version():
ver = {"version": VLLM_VERSION}
return JSONResponse(content=ver)
@router.get("/kv_event_sources")
async def kv_event_sources(raw_request: Request):
"""KV-event publisher config per DP rank; empty on render-only servers."""
client: EngineClient | None = raw_request.app.state.engine_client
return client.get_kv_event_sources() if client is not None else {}