sgl-project/sglang

[Feature] Support piggyback server load report.

オープン

#11,186 opened on 2025/10/03

 (4 件のコメント) (0 件のリアクション) (1 人の担当者)Python (6,216 件のフォーク)auto 404
good first issue

Repository metrics

Stars
 (28,442 個のスター)
PR merge metrics
 (平均マージ 2d 1h) (30d で 1,000 merged PRs)

説明

Checklist

Motivation

To support a flexible and reliable load balancing strategy, external router (sgl-router) and internal controller (dp-controller) should be aware of the real-time load situation.

Current implementation uses a polling mechanism and a watch-based communicator to query load from the scheduler. However, this is flexible and elegant.

  • Implement a piggyback load reporting mechanism, in which load information is carried through restreaming token messages.
  • Also keep the watching mode, always storing the latest load information in http worker for external query.

Related resources

No response

コントリビューターガイド