Struct mz_rocksdb::config::RocksDBConfig
source · pub struct RocksDBConfig {Show 15 fields
pub compaction_style: CompactionStyle,
pub optimize_compaction_memtable_budget: usize,
pub level_compaction_dynamic_level_bytes: bool,
pub universal_compaction_target_ratio: i32,
pub parallelism: Option<i32>,
pub compression_type: CompressionType,
pub bottommost_compression_type: CompressionType,
pub retry_max_duration: Duration,
pub stats_log_interval_seconds: u32,
pub stats_persist_interval_seconds: u32,
pub point_lookup_block_cache_size_mb: Option<u32>,
pub shrink_buffers_by_ratio: usize,
pub dynamic: RocksDBDynamicConfig,
pub write_buffer_manager_config: RocksDbWriteBufferManagerConfig,
pub shared_write_buffer_manager: SharedWriteBufferManager,
}
Expand description
Configurable options for a RocksDBInstance
. Some can be updated
dynamically, as cloned instances of this object will shared dynamic values.
Fields§
§compaction_style: CompactionStyle
§optimize_compaction_memtable_budget: usize
§level_compaction_dynamic_level_bytes: bool
§universal_compaction_target_ratio: i32
§parallelism: Option<i32>
§compression_type: CompressionType
§bottommost_compression_type: CompressionType
§retry_max_duration: Duration
§stats_log_interval_seconds: u32
§stats_persist_interval_seconds: u32
§point_lookup_block_cache_size_mb: Option<u32>
§shrink_buffers_by_ratio: usize
§dynamic: RocksDBDynamicConfig
§write_buffer_manager_config: RocksDbWriteBufferManagerConfig
Write buffer manager configs
Shared write buffer manager instance,
can only be instantiated once via get_or_init_handle
Implementations§
source§impl RocksDBConfig
impl RocksDBConfig
pub fn new( shared_write_buffer_manager: SharedWriteBufferManager, cluster_memory_limit: Option<usize>, ) -> Self
fn new_from_params( params: RocksDBTuningParameters, shared_write_buffer_manager: SharedWriteBufferManager, cluster_memory_limit: Option<usize>, ) -> Self
sourcepub fn apply(&mut self, params: RocksDBTuningParameters)
pub fn apply(&mut self, params: RocksDBTuningParameters)
Apply the new parameters to the config. Dynamic parameters are updated in place.
Trait Implementations§
source§impl Clone for RocksDBConfig
impl Clone for RocksDBConfig
source§fn clone(&self) -> RocksDBConfig
fn clone(&self) -> RocksDBConfig
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for RocksDBConfig
impl RefUnwindSafe for RocksDBConfig
impl Send for RocksDBConfig
impl Sync for RocksDBConfig
impl Unpin for RocksDBConfig
impl UnwindSafe for RocksDBConfig
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.