sgl-project/sglang

[Feature] Support piggyback server load report.

Aperta

#11.186 aperta il 3 ott 2025

 (4 commenti) (0 reazioni) (1 assegnatario)Python (6216 fork)auto 404
good first issue

Metriche repository

Star
 (28.442 stelle)
Metriche merge PR
 (Merge medio 2g 1h) (1000 PR mergiate in 30 g)

Descrizione

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

Guida contributor