pub struct PoolStats {
pub size: usize,
pub idle_count: usize,
pub total_inflight: usize,
pub max_inflight: usize,
pub min_size: usize,
pub max_size: usize,
pub healthy_count: usize,
pub unhealthy_count: usize,
pub unknown_health_count: usize,
pub max_replication_lag_bytes: Option<u64>,
pub reaped_connections: u64,
}Expand description
A snapshot of current ConnectionPool utilization.
Obtained via ConnectionPool::stats. All values are point-in-time
reads of the underlying atomic counters; concurrent commands may cause
values to change between calls.
Fields§
§size: usizeTotal number of connections in the pool.
idle_count: usizeNumber of connections with zero in-flight commands (idle).
total_inflight: usizeTotal in-flight command count across all connections.
max_inflight: usizeHighest in-flight count on a single connection.
min_size: usizeConfigured lower bound for idle reaping.
max_size: usizeConfigured upper bound for contention-driven growth.
healthy_count: usizeSlots whose most recent active probe was healthy.
unhealthy_count: usizeSlots whose most recent active probe was unhealthy.
unknown_health_count: usizeSlots that have not been actively probed since creation/replacement.
max_replication_lag_bytes: Option<u64>Largest replication lag reported by the latest slot observations.
reaped_connections: u64Cumulative number of idle connections removed by a reaper.