pub struct BackpressureMetrics
pub max_in_flight_batches: usize,
pub available_permits: usize,
pub in_flight_batches: usize,
pub pending_batches: i64,
pub utilization_pct: f64,
Metrics for monitoring backpressure behavior.
Use BulkInserter::backpressure_metrics() to retrieve current metrics.
Fields
max_in_flight_batches: usizeMaximum number of in-flight batches allowed
available_permits: usizeNumber of permits currently available (batches that can be sent without waiting)
in_flight_batches: usizeNumber of batches currently in-flight (being processed by workers)
pending_batches: i64Number of batches pending in the queue (waiting for workers)
utilization_pct: f64Utilization percentage (0-100): how much of the in-flight capacity is used
Trait Implementations
Source
impl Clone for BackpressureMetrics
Source
fn clone(&self) -> BackpressureMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more