Struct thingvellir::ShardStats [−][src]
pub struct ShardStats {Show 14 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 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.
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
Merges a bunch of ShardStats
into a singular shard stat that has all the counters
summed up.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ShardStats
impl Send for ShardStats
impl Sync for ShardStats
impl Unpin for ShardStats
impl UnwindSafe for ShardStats
Blanket Implementations
Mutably borrows from an owned value. Read more