vllm-project/semantic-router
View on GitHubresearch: forecast workload archetypes for proactive per-pool scaling
Open
#2,554 opened on Jul 15, 2026
area/bencharea/observabilityarea/researchenhancementevaluationhelp wantedoperationspriority/P2roadmap
Repository metrics
- Stars
- (4,293 stars)
- PR merge metrics
- (PR metrics pending)
Description
Motivation
Forecast coarse workload archetype demand so operators can size or scale pools proactively. This is an offline/nearline FleetSim and control-plane task; the semantic router may export content-free aggregates but does not run the scaler.
Audited upstream baseline (2026-07-15)
- Classification/domain signals and replay data can support bounded aggregate counts.
- FleetSim ships representative token-demand CDF assets and workload/fleet models.
- Current
mainhas no canonical workload-archetype schema, forecast service, or production autoscaling controller driven by those forecasts. - Pool actuation belongs below semantic routing under #2513.
Research scope
- Define a small, versioned archetype taxonomy using measurable demand/SLO characteristics rather than raw prompt semantics.
- Produce privacy-safe time buckets with request/token/latency distributions, model/SLO class, region, and uncertainty.
- Compare naive seasonal, moving-window, and statistical/ML forecasts.
- Convert forecast distributions to FleetSim scenarios and capacity recommendations.
- Evaluate proactive recommendations against reactive autoscaling/static baselines under burst, drift, and forecast error.
- Define a separate authenticated control-plane recommendation/acknowledgement contract; begin in advise-only mode.
- Monitor taxonomy drift and forecast calibration without high-cardinality labels.
Boundaries
- No raw prompts are required by default.
- Forecast categories cannot become authorization or safety shortcuts.
- No capacity solver or scaler runs in the ext_proc hot path.
- The downstream operator/LB owns actuation, cooldown, quotas, and rollback.
- Missing/stale forecasts fall back to ordinary reactive controls.
Acceptance criteria
- Archetype schema, aggregation window, privacy limits, and versioning are documented.
- Baselines, uncertainty, drift, and backtests are reported.
- FleetSim scenarios are reproducible from content-free aggregates.
- Recommendation and actual downstream actuation are recorded separately.
- Oscillation, burst, stale-data, and rollback tests exist.
- No high-cardinality caller/session/arbitrary-domain metrics are introduced.
- Results state when forecasting does not beat simpler controls.
Likely change surfaces
Router observability/export and Router Replay projections, src/fleet-sim/fleet_sim/workload/, src/fleet-sim/fleet_sim/core/, src/fleet-sim/fleet_sim/optimizer/, dashboard/control-plane integration, docs, and tests.
Related: #2332, #2359, #2550, #2556.