Struct tikv::config::DbConfig[][src]

pub struct DbConfig {
    pub info_log_level: LogLevel,
    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 rate_bytes_per_sec: ReadableSize,
    pub rate_limiter_refill_period: ReadableDuration,
    pub rate_limiter_mode: DBRateLimiterMode,
    pub rate_limiter_auto_tuned: bool,
    pub bytes_per_sync: ReadableSize,
    pub wal_bytes_per_sync: ReadableSize,
    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_multi_batch_write: bool,
    pub enable_unordered_write: bool,
    pub defaultcf: DefaultCfConfig,
    pub writecf: WriteCfConfig,
    pub lockcf: LockCfConfig,
    pub raftcf: RaftCfConfig,
    pub titan: TitanDBConfig,
    // some fields omitted
}

Fields

info_log_level: LogLevelwal_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: Stringrate_bytes_per_sec: ReadableSizerate_limiter_refill_period: ReadableDurationrate_limiter_mode: DBRateLimiterModerate_limiter_auto_tuned: boolbytes_per_sync: ReadableSizewal_bytes_per_sync: ReadableSizemax_sub_compactions: u32writable_file_max_buffer_size: ReadableSizeuse_direct_io_for_flush_and_compaction: boolenable_pipelined_write: boolenable_multi_batch_write: boolenable_unordered_write: booldefaultcf: DefaultCfConfigwritecf: WriteCfConfiglockcf: LockCfConfigraftcf: RaftCfConfigtitan: TitanDBConfig

Implementations

impl DbConfig[src]

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

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

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

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

fn write_into_metrics(&self)[src]

Trait Implementations

impl Clone for DbConfig[src]

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

type Encoder = DbConfig_encoder_ab7134608ff6ac53<'lt>

impl Debug for DbConfig[src]

impl Default for DbConfig[src]

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

impl PartialEq<DbConfig> for DbConfig[src]

impl Serialize for DbConfig[src]

impl StructuralPartialEq for DbConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for DbConfig

impl Send for DbConfig

impl Sync for DbConfig

impl Unpin for DbConfig

impl UnwindSafe for DbConfig

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]