pub struct BlobCacheStats { /* private fields */ }Implementations§
Source§impl BlobCacheStats
impl BlobCacheStats
Sourcepub fn hits(&self) -> u64
pub fn hits(&self) -> u64
Number of get/exists calls that resolved to Present /
MaybePresent. Both count as hit prospects.
pub fn insertions(&self) -> u64
pub fn evictions(&self) -> u64
pub fn expirations(&self) -> u64
pub fn invalidations(&self) -> u64
pub fn namespace_flushes(&self) -> u64
pub fn version_mismatches(&self) -> u64
pub fn entries(&self) -> usize
Sourcepub fn bytes_in_use(&self) -> u64
pub fn bytes_in_use(&self) -> u64
Bytes resident in L1. Returned as u64 for symmetry with
l2_bytes_in_use; upcast is lossless.
pub fn l1_bytes_max(&self) -> usize
pub fn l2_bytes_in_use(&self) -> u64
pub fn l2_bytes_max(&self) -> u64
pub fn l2_full_rejections(&self) -> u64
pub fn l2_metadata_reads(&self) -> u64
pub fn l2_negative_skips(&self) -> u64
Sourcepub fn synopsis_metadata_reads(&self) -> u64
pub fn synopsis_metadata_reads(&self) -> u64
Times the Bloom synopsis answered MaybePresent but the authoritative
L2 metadata B+ tree said Absent. This is the cost of the
probabilistic synopsis: a counter for the false-positive rate in
production. Negative answers from the filter never trigger a metadata
read (see l2_negative_skips).
Sourcepub fn synopsis_bytes(&self) -> u64
pub fn synopsis_bytes(&self) -> u64
Total bytes used by all per-namespace Bloom synopsis filters.
pub fn namespaces(&self) -> usize
pub fn max_namespaces(&self) -> usize
Sourcepub fn promotion_queued(&self) -> u64
pub fn promotion_queued(&self) -> u64
Total promotion requests successfully enqueued by get since boot.
0 when async promotion is disabled.
Sourcepub fn promotion_dropped(&self) -> u64
pub fn promotion_dropped(&self) -> u64
Total promotion requests dropped on queue saturation since boot.
0 when async promotion is disabled.
Sourcepub fn promotion_completed(&self) -> u64
pub fn promotion_completed(&self) -> u64
Total promotion requests executed by workers since boot.
0 when async promotion is disabled.
Sourcepub fn promotion_queue_depth(&self) -> usize
pub fn promotion_queue_depth(&self) -> usize
Snapshot of pending requests in the promotion queue.
0 when async promotion is disabled.
Sourcepub fn l2_compression_ratio_observed(&self) -> f64
pub fn l2_compression_ratio_observed(&self) -> f64
Running average of original_len / stored_len for L2 entries that
the compressor actually shrank (#192). Returns 1.0 when no
compressed entry has been observed yet, regardless of how many
Raw entries have passed through (callers should pair this with
l2_compression_skipped_total
to interpret).
Sourcepub fn l2_compression_skipped_total(&self) -> u64
pub fn l2_compression_skipped_total(&self) -> u64
Number of L2 entries the compressor returned as Raw since boot —
any reason: payload below min_bytes, content type already
compressed, ratio gate fired, or cache.blob.l2_compression = "off".
Sourcepub fn l2_bytes_saved_total(&self) -> u64
pub fn l2_bytes_saved_total(&self) -> u64
Cumulative (original_len - stored_len) across all L2 entries the
compressor shrank. Operators read this to size the L2 budget
multiplier from real workloads.
Sourcepub fn l1_stale_serves_total(&self) -> u64
pub fn l1_stale_serves_total(&self) -> u64
Counter — L1 hits served as stale by the SWR window of an
ExtendedTtlPolicy (#194). 0 when no entry was written with an
active extended policy.
Sourcepub fn l1_idle_evicts_total(&self) -> u64
pub fn l1_idle_evicts_total(&self) -> u64
Counter — L1 entries evicted by the idle-TTL gate of an
ExtendedTtlPolicy (#194). 0 when no entry was written with an
active extended policy.
Trait Implementations§
Source§impl Clone for BlobCacheStats
impl Clone for BlobCacheStats
Source§fn clone(&self) -> BlobCacheStats
fn clone(&self) -> BlobCacheStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BlobCacheStats
impl Debug for BlobCacheStats
Source§impl Default for BlobCacheStats
impl Default for BlobCacheStats
Source§fn default() -> BlobCacheStats
fn default() -> BlobCacheStats
Source§impl PartialEq for BlobCacheStats
impl PartialEq for BlobCacheStats
Source§fn eq(&self, other: &BlobCacheStats) -> bool
fn eq(&self, other: &BlobCacheStats) -> bool
self and other values to be equal, and is used by ==.impl Copy for BlobCacheStats
impl Eq for BlobCacheStats
impl StructuralPartialEq for BlobCacheStats
Auto Trait Implementations§
impl Freeze for BlobCacheStats
impl RefUnwindSafe for BlobCacheStats
impl Send for BlobCacheStats
impl Sync for BlobCacheStats
impl Unpin for BlobCacheStats
impl UnsafeUnpin for BlobCacheStats
impl UnwindSafe for BlobCacheStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request