Struct tikv::config::RaftDbConfig[][src]

pub struct RaftDbConfig {
    pub wal_recovery_mode: DBRecoveryMode,
    pub wal_dir: String,
    pub wal_ttl_seconds: u64,
    pub wal_size_limit: ReadableSize,
    pub max_total_wal_size: ReadableSize,
    pub max_background_jobs: i32,
    pub max_background_flushes: i32,
    pub max_manifest_file_size: ReadableSize,
    pub create_if_missing: bool,
    pub max_open_files: i32,
    pub enable_statistics: bool,
    pub stats_dump_period: ReadableDuration,
    pub compaction_readahead_size: ReadableSize,
    pub info_log_max_size: ReadableSize,
    pub info_log_roll_time: ReadableDuration,
    pub info_log_keep_log_file_num: u64,
    pub info_log_dir: String,
    pub info_log_level: LogLevel,
    pub max_sub_compactions: u32,
    pub writable_file_max_buffer_size: ReadableSize,
    pub use_direct_io_for_flush_and_compaction: bool,
    pub enable_pipelined_write: bool,
    pub enable_unordered_write: bool,
    pub allow_concurrent_memtable_write: bool,
    pub bytes_per_sync: ReadableSize,
    pub wal_bytes_per_sync: ReadableSize,
    pub defaultcf: RaftDefaultCfConfig,
    pub titan: TitanDBConfig,
}

Fields

wal_recovery_mode: DBRecoveryModewal_dir: Stringwal_ttl_seconds: u64wal_size_limit: ReadableSizemax_total_wal_size: ReadableSizemax_background_jobs: i32max_background_flushes: i32max_manifest_file_size: ReadableSizecreate_if_missing: boolmax_open_files: i32enable_statistics: boolstats_dump_period: ReadableDurationcompaction_readahead_size: ReadableSizeinfo_log_max_size: ReadableSizeinfo_log_roll_time: ReadableDurationinfo_log_keep_log_file_num: u64info_log_dir: Stringinfo_log_level: LogLevelmax_sub_compactions: u32writable_file_max_buffer_size: ReadableSizeuse_direct_io_for_flush_and_compaction: boolenable_pipelined_write: boolenable_unordered_write: boolallow_concurrent_memtable_write: boolbytes_per_sync: ReadableSizewal_bytes_per_sync: ReadableSizedefaultcf: RaftDefaultCfConfigtitan: TitanDBConfig

Implementations

impl RaftDbConfig[src]

pub fn build_opt(&self) -> DBOptions[src]

pub fn build_cf_opts(&self, cache: &Option<Cache>) -> Vec<CFOptions<'_>>[src]

fn validate(&mut self) -> Result<(), Box<dyn Error>>[src]

pub fn adjust_memory_usage_limit(&mut self, limit: ReadableSize)[src]

Trait Implementations

impl Clone for RaftDbConfig[src]

impl<'lt> Configuration<'lt> for RaftDbConfig[src]

type Encoder = RaftDbConfig_encoder_a6859668ead759ee<'lt>

impl Debug for RaftDbConfig[src]

impl Default for RaftDbConfig[src]

impl<'de> Deserialize<'de> for RaftDbConfig where
    RaftDbConfig: Default
[src]

impl PartialEq<RaftDbConfig> for RaftDbConfig[src]

impl Serialize for RaftDbConfig[src]

impl StructuralPartialEq for RaftDbConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for RaftDbConfig

impl Send for RaftDbConfig

impl Sync for RaftDbConfig

impl Unpin for RaftDbConfig

impl UnwindSafe for RaftDbConfig

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]