Expand description
Canonical worker types and identity.
This module defines the single source of truth for worker identity, type enums, and core configuration. These types are shared across API request/response boundaries and internal runtime state.
Structs§
- Engine
Aggregate Metrics Snapshot - Engine
Memory Metrics Snapshot - Engine
Queue Metrics Snapshot - Flush
Cache Result - Result from flush cache operations across workers
- Health
Check Config - Health check configuration shared across protocol and runtime layers.
- Health
Check Update - Partial health check config for PATCH-style updates.
- Http
Pool Config - Per-worker HTTP connection pool configuration.
All fields optional —
Nonemeans “use router/global default”. - JobStatus
- Job status for async control plane operations
- List
Workers Query - Query parameters for
GET /workers. - Overload
Update - Per-worker absolute overload threshold overrides.
All fields optional —
Nonemeans “use gateway default”. Either field set enables overload protection for this worker even when the gateway leaves it off. MirrorsHealthCheckUpdatepattern for PATCH-style config. - Profile
Options - Options for starting a profiling run on workers.
- Profile
Result - Result from profile start/stop operations across workers
- Resilience
Update - Per-worker resilience overrides (retry + circuit breaker).
All fields optional —
Nonemeans “use router default”. MirrorsHealthCheckUpdatepattern for PATCH-style config. - Scheduler
Load Snapshot - Per-DP-rank load snapshot from a backend.
- Start
Profile Request - Request body for the gateway
/start_profileroute: profile options plus an optional worker URL to target a single worker (e.g. one PD-disaggregation role). All workers are profiled whenurlis unset. - Stop
Profile Request - Request body for the gateway
/stop_profileroute: optional worker URL to target a single worker. - Worker
ApiResponse - Generic API response
- Worker
Error Response - Error response
- Worker
Group Key - Composite key identifying a group of workers with the same characteristics.
- Worker
Info - Worker information for API responses.
- Worker
List Response - Worker list response
- Worker
Load Info - Individual worker load information
- Worker
Load Response - Full load response for a single worker across all DP ranks.
- Worker
Loads Result - Result from getting worker loads
- Worker
Spec - Core worker identity and configuration.
- Worker
Stats - Worker statistics
- Worker
Type Stats - Worker statistics by type
- Worker
Update Request - Worker update request
Enums§
- Connection
Mode - Connection mode for worker communication.
- Provider
Type - Provider type for external API transformations.
- Runtime
Type - Runtime implementation type for workers.
- Transport
Mode - Multimodal tensor transport mode for large payloads.
- Worker
Models - Models configuration for a worker.
- Worker
Status - Worker lifecycle status, modeled after Kubernetes pod conditions.
- Worker
Type - Worker type classification.