pub struct PoolSnapshot {Show 26 fields
pub name: Arc<str>,
pub capacity: u32,
pub busy: u32,
pub held: u32,
pub desired: u32,
pub pending_by_class: [usize; 4],
pub ready: usize,
pub reservations: usize,
pub window: Duration,
pub dispatched: u64,
pub succeeded: u64,
pub failed: u64,
pub retried: u64,
pub priority_adherence: f64,
pub fixed_start_hit_rate: f64,
pub utilization: f64,
pub schedule_efficiency: f64,
pub wait_mean: Duration,
pub wait_p50: Duration,
pub wait_p90: Duration,
pub wait_p99: Duration,
pub run_p50: Duration,
pub run_p99: Duration,
pub worker_seconds: f64,
pub cost: f64,
pub groups: Vec<GroupSnapshot>,
}Expand description
State and windowed quality metrics of one pool.
Counters and ratios cover the last PoolSnapshot::window
(CoreConfig::metrics_window); worker_seconds and cost accumulate since start.
Fields§
§name: Arc<str>Pool name.
capacity: u32Workers currently available to the pool.
busy: u32Workers currently running a task.
held: u32Workers held free for upcoming fixed-start tasks.
desired: u32Last autoscaler target (equals capacity without autoscaling).
pending_by_class: [usize; 4]Tasks not yet running (blocked, scheduled, ready or retrying), by priority class.
ready: usizeTasks ready to run right now (queued or due).
reservations: usizeActive fixed-start reservations.
window: DurationLength of the metrics window.
dispatched: u64Attempts started in the window.
succeeded: u64Tasks that succeeded in the window.
failed: u64Attempts that failed in the window (including ones that will be retried).
retried: u64Retries scheduled in the window.
priority_adherence: f64Fraction of dispatches where no strictly higher class was waiting in the pool.
fixed_start_hit_rate: f64Fraction of fixed-start tasks started within tolerance (first attempts only).
utilization: f64Busy slot-seconds / capacity slot-seconds.
schedule_efficiency: f64Completed work seconds / capacity slot-seconds.
wait_mean: DurationMean time from submission to first start.
wait_p50: DurationMedian time from submission to first start.
wait_p90: Duration90th-percentile time from submission to first start.
wait_p99: Duration99th-percentile time from submission to first start.
run_p50: DurationMedian runtime of successful attempts.
run_p99: Duration99th-percentile runtime of successful attempts.
worker_seconds: f64Capacity slot-seconds provisioned since start.
cost: f64worker_seconds × AutoscaleConfig::cost_per_worker_second since start.
groups: Vec<GroupSnapshot>Worker groups by label set (the unlabeled group first).