pub struct GroupCommitMetrics {
pub adaptive_batch_size: AtomicU64,
pub arrival_rate_ema: AtomicU64,
pub fsync_latency_us: AtomicU64,
pub total_commits: AtomicU64,
pub total_batches: AtomicU64,
pub total_fsync_time_us: AtomicU64,
pub last_arrival_us: AtomicU64,
}Expand description
Metrics for group commit monitoring
Fields§
§adaptive_batch_size: AtomicU64Current adaptive batch size
arrival_rate_ema: AtomicU64Estimated arrival rate (req/s × 1000 for precision)
fsync_latency_us: AtomicU64Estimated fsync latency (microseconds)
total_commits: AtomicU64Total commits processed
total_batches: AtomicU64Total batches processed
total_fsync_time_us: AtomicU64Total fsync time (microseconds)
last_arrival_us: AtomicU64Last arrival timestamp (microseconds since epoch)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for GroupCommitMetrics
impl RefUnwindSafe for GroupCommitMetrics
impl Send for GroupCommitMetrics
impl Sync for GroupCommitMetrics
impl Unpin for GroupCommitMetrics
impl UnwindSafe for GroupCommitMetrics
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 more