sgl-project/sglang

[Feature] Support piggyback server load report.

Offen

#11.186 geöffnet am 03.10.2025

 (4 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Python (6.216 Forks)auto 404
good first issue

Repository-Metriken

Stars
 (28.442 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 13h) (1.000 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide