RocksSpoolParams

Struct RocksSpoolParams 

Source
pub struct RocksSpoolParams {
Show 21 fields pub increase_parallelism: Option<i32>, pub optimize_level_style_compaction: Option<usize>, pub optimize_universal_style_compaction: Option<usize>, pub paranoid_checks: bool, pub compression_type: DBCompressionTypeDef, pub compaction_readahead_size: Option<usize>, pub level_compaction_dynamic_level_bytes: bool, pub max_open_files: Option<usize>, pub write_buffer_size: Option<usize>, pub level0_stop_writes_trigger: Option<i32>, pub log_level: LogLevelDef, pub memtable_huge_page_size: Option<usize>, pub log_file_time_to_roll: Duration, pub obsolete_files_period: Duration, pub limit_concurrent_stores: Option<usize>, pub limit_concurrent_loads: Option<usize>, pub limit_concurrent_removes: Option<usize>, pub store_deadline: Duration, pub error_latch_duration: Duration, pub error_unlatch_duration: Duration, pub allow_error_unlatch: bool,
}

Fields§

§increase_parallelism: Option<i32>§optimize_level_style_compaction: Option<usize>§optimize_universal_style_compaction: Option<usize>§paranoid_checks: bool§compression_type: DBCompressionTypeDef§compaction_readahead_size: Option<usize>

If non-zero, we perform bigger reads when doing compaction. If you’re running RocksDB on spinning disks, you should set this to at least 2MB. That way RocksDB’s compaction is doing sequential instead of random reads

§level_compaction_dynamic_level_bytes: bool§max_open_files: Option<usize>§write_buffer_size: Option<usize>

Size in bytes of the rocksdb memtable that buffers writes before being flushed to disk as a new SST file.

Smaller values produce smaller, more frequent SST files and trigger compactions sooner – useful in test setups that need to force the storage through its full write/compact lifecycle quickly. Larger values amortize compaction overhead but increase memory use and recovery time after restart. Leave unset to use the rocksdb default.

§level0_stop_writes_trigger: Option<i32>

Number of level-0 SST files at which rocksdb will stop accepting writes. Lower values transition the database into the write-stopped state more quickly when background compaction cannot keep up, which is useful for tests that need to deterministically observe that condition. Leave unset to use the rocksdb default.

§log_level: LogLevelDef§memtable_huge_page_size: Option<usize>§log_file_time_to_roll: Duration§obsolete_files_period: Duration§limit_concurrent_stores: Option<usize>§limit_concurrent_loads: Option<usize>§limit_concurrent_removes: Option<usize>§store_deadline: Duration

Upper bound on the wait that store() and remove() will tolerate when rocksdb is applying backpressure. Callers may provide a shorter deadline (typically derived from an SMTP client’s idle timeout); the effective deadline is the minimum of the two. Going longer than the caller-provided value risks the client timing out and retrying, which would produce duplicate deliveries – this option therefore only narrows the effective deadline, it never extends it.

§error_latch_duration: Duration

Delay after an error before pausing writes, specified as a duration string such as "15s" or "2m". Even an isolated error starts this delay. A read, write, or enumeration returning Corruption or IOError bypasses the delay and immediately pauses writes until an automatic retry or process restart. Errors in background flushes and compactions start the delay when the monitor observes their count increasing.

§error_unlatch_duration: Duration

The duration to pause before an automatic retry, specified as a duration string such as "5m" or "30s". The timer starts when the gate latches and restarts on each error observation. Must be nonzero when allow_error_unlatch is true. Longer pauses allow more time for operator inspection.

§allow_error_unlatch: bool

Whether writes resume automatically after error_unlatch_duration elapses with the gate latched and error counts unchanged. Defaults to true. Set to false to keep writes paused until an operator restarts the process after inspecting the database.

Trait Implementations§

Source§

impl Debug for RocksSpoolParams

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RocksSpoolParams

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for RocksSpoolParams

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for RocksSpoolParams

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,