[][src]Struct thingvellir::ShardStats

pub struct ShardStats {
    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,
}

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

impl ShardStats[src]

pub fn merge_stats<S: IntoIterator<Item = ShardStats>>(stats: S) -> Self[src]

Merges a bunch of ShardStats into a singular shard stat that has all the counters summed up.

Trait Implementations

impl Clone for ShardStats[src]

impl Debug for ShardStats[src]

impl Default for ShardStats[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,