pub struct BucketUsage {
pub committed_append_bytes: u64,
pub committed_records: u64,
pub committed_write_units: u64,
pub retained_bytes: u64,
pub stream_count: u64,
}Expand description
Per-bucket committed usage inside one Raft group’s replicated state.
committed_append_bytes, committed_records, and
committed_write_units are monotonic: they count
committed (non-deduplicated) appends and survive restarts through the
snapshot. retained_bytes and stream_count are gauges derived from live
stream state and are recomputed from the restored slots, so drift cannot
accumulate across snapshot cycles. Deleting or purging a bucket zeros the
gauges but retains the monotonic counters: otherwise committed writes can
disappear before an asynchronous accounting reader observes them. A bucket
recreated under the same ID continues the counters. A bucket-wide total is
the sum of this value across every Raft group.
Fields§
§committed_append_bytes: u64§committed_records: u64§committed_write_units: u64Committed write operations measured in the unit declared by the usage API, rounded up per operation and never below one. The API describes the unit separately so this state is a usage fact rather than a price name. Kept in replicated state because a gateway cannot distinguish “commit succeeded, response was lost” from “the write never committed”.
retained_bytes: u64§stream_count: u64Trait Implementations§
Source§impl Clone for BucketUsage
impl Clone for BucketUsage
Source§fn clone(&self) -> BucketUsage
fn clone(&self) -> BucketUsage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more