pub struct AdaptiveMemtableConfig {
pub base_size: usize,
pub min_size: usize,
pub max_size: usize,
pub target_buffer_seconds: f64,
pub ema_alpha: f64,
pub enable_memory_pressure: bool,
}Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Expand description
Configuration for adaptive memtable sizing
Fieldsยง
ยงbase_size: usizeUnused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Base size in bytes (default: 4MB)
min_size: usizeUnused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Minimum allowed size (default: 1MB)
max_size: usizeUnused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Maximum allowed size (default: 16MB)
target_buffer_seconds: f64Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Target buffer duration in seconds (default: 1.0)
ema_alpha: f64Unused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
EMA alpha for write rate (default: 0.1)
enable_memory_pressure: boolUnused duplicate memtable; live memtables are lscs::ColumnarMemtable + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Whether to enable memory pressure feedback
Trait Implementationsยง
Sourceยงimpl Clone for AdaptiveMemtableConfig
impl Clone for AdaptiveMemtableConfig
Sourceยงfn clone(&self) -> AdaptiveMemtableConfig
fn clone(&self) -> AdaptiveMemtableConfig
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 AdaptiveMemtableConfig
impl Debug for AdaptiveMemtableConfig
Auto Trait Implementationsยง
impl Freeze for AdaptiveMemtableConfig
impl RefUnwindSafe for AdaptiveMemtableConfig
impl Send for AdaptiveMemtableConfig
impl Sync for AdaptiveMemtableConfig
impl Unpin for AdaptiveMemtableConfig
impl UnsafeUnpin for AdaptiveMemtableConfig
impl UnwindSafe for AdaptiveMemtableConfig
Blanket Implementationsยง
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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 more