[−][src]Struct thingvellir::ShardStats
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]
fn clone(&self) -> ShardStats
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ShardStats
[src]
impl Default for ShardStats
[src]
fn default() -> ShardStats
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,