Struct thingvellir::ShardStats
source · pub struct ShardStats {Show 15 fields
pub executions_complete: u64,
pub executions_coalesced: u64,
pub executions_pending: usize,
pub keys_lru_evicted: u64,
pub keys_ttl_evicted: u64,
pub keys_taken: u64,
pub internal_tasks: usize,
pub loads_in_progress: usize,
pub loads_failed: u64,
pub loads_not_found: u64,
pub loads_complete: u64,
pub data_size: usize,
pub expiring_keys: usize,
pub expiration_probes_ran: u64,
pub expiration_probes_expedited: u64,
}
Expand description
Stat counters for a single shard, holding various counters
that may be of use to report metrics for. A convenience method
is provided to sum all the counters via ShardStats::merge_stats(..)
.
Fields§
§executions_complete: u64
The number of executions that a given shard has completed.
executions_coalesced: u64
The number of executions that completed as result of a coalesced load from upstream.
executions_pending: usize
The number of executions that are currently pending data being loaded from the upstream.
keys_lru_evicted: u64
The number of keys that have been evicted due to capacity constraints that caused an LRU key to be removed.
keys_ttl_evicted: u64
The number of keys that have been evicted due to TTLing out.
keys_taken: u64
The number of keys that have been removed via the .take_data()
method.
internal_tasks: usize
The number of load & commit tasks that are currently in the internal join set.
loads_in_progress: usize
The number of load operations that are currently in progress.
loads_failed: u64
The number of load operations that have failed (not including those that have failed due to not_found.)
loads_not_found: u64
The number of load operations that have failed due to the upstream reporting that the key was not found.
loads_complete: u64
The number of load operations that have completed successfully.
data_size: usize
The number of keys that the shard is currently holding in memory.
expiring_keys: usize
The number of keys that the shard is holding, that has an expiration.
expiration_probes_ran: u64
The number of expiration probes that the shard has run.
expiration_probes_expedited: u64
The number of expedited expiration probes that the shard has run.
Implementations§
source§impl ShardStats
impl ShardStats
sourcepub fn merge_stats<S: IntoIterator<Item = ShardStats>>(stats: S) -> Self
pub fn merge_stats<S: IntoIterator<Item = ShardStats>>(stats: S) -> Self
Merges a bunch of ShardStats
into a singular shard stat that has all the counters
summed up.
Trait Implementations§
source§impl Clone for ShardStats
impl Clone for ShardStats
source§fn clone(&self) -> ShardStats
fn clone(&self) -> ShardStats
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more