pub struct IoIsolationConfig {
pub total_cache_bytes: usize,
pub query_partition_pct: u8,
pub compaction_partition_pct: u8,
pub wal_partition_pct: u8,
pub auto_direct_io: bool,
pub direct_io_threshold: usize,
pub prefer_eviction: bool,
pub memory_pressure_threshold: f64,
}Expand description
I/O isolation policy configuration
Fields§
§total_cache_bytes: usizeTotal cache budget in bytes
query_partition_pct: u8Query partition percentage
compaction_partition_pct: u8Compaction partition percentage
wal_partition_pct: u8WAL partition percentage
auto_direct_io: boolEnable automatic Direct I/O for large scans
direct_io_threshold: usizeThreshold for switching to Direct I/O (bytes)
prefer_eviction: boolUnder memory pressure, prefer eviction over OOM
memory_pressure_threshold: f64Memory pressure threshold (0.0 - 1.0)
Trait Implementations§
Source§impl Clone for IoIsolationConfig
impl Clone for IoIsolationConfig
Source§fn clone(&self) -> IoIsolationConfig
fn clone(&self) -> IoIsolationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IoIsolationConfig
impl Debug for IoIsolationConfig
Auto Trait Implementations§
impl Freeze for IoIsolationConfig
impl RefUnwindSafe for IoIsolationConfig
impl Send for IoIsolationConfig
impl Sync for IoIsolationConfig
impl Unpin for IoIsolationConfig
impl UnsafeUnpin for IoIsolationConfig
impl UnwindSafe for IoIsolationConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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