pub struct AdaptiveIoController { /* private fields */ }Expand description
Adaptive I/O controller that adjusts throttling based on system load
Monitors foreground query latency and adjusts compaction I/O rate to maintain acceptable performance.
Implementations§
Source§impl AdaptiveIoController
impl AdaptiveIoController
Sourcepub fn report_latency(&self, latency_us: u64)
pub fn report_latency(&self, latency_us: u64)
Report observed foreground latency
Used to adjust compaction I/O rate
Sourcepub fn effective_rate(&self) -> u64
pub fn effective_rate(&self) -> u64
Get current effective rate
Sourcepub fn throttler(&self) -> &IoThrottler
pub fn throttler(&self) -> &IoThrottler
Get the underlying throttler
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AdaptiveIoController
impl RefUnwindSafe for AdaptiveIoController
impl Send for AdaptiveIoController
impl Sync for AdaptiveIoController
impl Unpin for AdaptiveIoController
impl UnsafeUnpin for AdaptiveIoController
impl UnwindSafe for AdaptiveIoController
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