pub struct RocksdbConfig {
pub max_open_files: i32,
pub max_total_wal_size: u64,
pub max_background_jobs: i32,
}
Expand description
Port selected RocksDB options for tuning underlying rocksdb instance of our state db. The current default values are taken from Aptos. TODO: tune rocksdb for our workload. see https://github.com/facebook/rocksdb/blob/master/include/rocksdb/options.h for detailed explanations.
Fields§
§max_open_files: i32
The maximum number of files that can be open concurrently. Defaults to 5000
max_total_wal_size: u64
Once write-ahead logs exceed this size, RocksDB will start forcing the flush of column families whose memtables are backed by the oldest live WAL file. Defaults to 1GB
max_background_jobs: i32
The maximum number of background threads, including threads for flushing and compaction. Defaults to 16.
Trait Implementations§
Source§impl Clone for RocksdbConfig
impl Clone for RocksdbConfig
Source§fn clone(&self) -> RocksdbConfig
fn clone(&self) -> RocksdbConfig
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 RocksdbConfig
impl Debug for RocksdbConfig
Source§impl Default for RocksdbConfig
impl Default for RocksdbConfig
Source§impl PartialEq for RocksdbConfig
impl PartialEq for RocksdbConfig
impl Copy for RocksdbConfig
impl Eq for RocksdbConfig
impl StructuralPartialEq for RocksdbConfig
Auto 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§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