pub struct ControllerSnapshot {Show 18 fields
pub expected_rtt: Duration,
pub baseline_rtt: Duration,
pub short_rtt: Duration,
pub long_rtt: Duration,
pub target_concurrency: f64,
pub effective_concurrency: f64,
pub base_rate: f64,
pub effective_rate: f64,
pub committed_tat: Instant,
pub virtual_tail_tat: Option<Instant>,
pub queued: usize,
pub inflight: usize,
pub queue_capacity: usize,
pub max_inflight: usize,
pub completed: u64,
pub failures: u64,
pub latency_samples: u64,
pub active_probe: Option<Probe>,
}Expand description
A point-in-time view useful for metrics, tests, and P2C load prediction.
Fields§
§expected_rtt: DurationLong-term RTT used to convert the concurrency target into a base rate.
baseline_rtt: DurationMinimum RTT observed within the rolling baseline window.
short_rtt: DurationShort-term exponentially weighted RTT estimate.
long_rtt: DurationLong-term exponentially weighted RTT estimate.
target_concurrency: f64Fractional concurrency selected by the Gradient2 controller.
effective_concurrency: f64Concurrency implied by the current rate, including any active probe.
base_rate: f64Requests per second derived from target concurrency and expected RTT.
effective_rate: f64Current requests per second after applying an active probe, if any.
committed_tat: InstantThe GCRA theoretical arrival time committed by actual dispatches.
virtual_tail_tat: Option<Instant>Predicted TAT after all current virtual queue reservations.
This is None when the virtual queue is empty.
queued: usizeNumber of accepted but not-yet-dispatched reservations.
inflight: usizeNumber of dispatched requests awaiting completion.
queue_capacity: usizeConfigured maximum number of queued reservations.
max_inflight: usizeConfigured emergency cap on dispatched requests.
completed: u64Number of dispatched requests reported as completed.
failures: u64Number of unhealthy completions and transport admission failures.
latency_samples: u64Number of successful RTT samples observed by the latency estimator.
active_probe: Option<Probe>Temporary probe active at the time of the snapshot, if any.
Trait Implementations§
Source§impl Clone for ControllerSnapshot
impl Clone for ControllerSnapshot
Source§fn clone(&self) -> ControllerSnapshot
fn clone(&self) -> ControllerSnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more