Struct raftstore::store::config::Config [−][src]
Fields
prevote: bool
raftdb_path: String
capacity: ReadableSize
raft_base_tick_interval: ReadableDuration
raft_heartbeat_ticks: usize
raft_election_timeout_ticks: usize
raft_min_election_timeout_ticks: usize
raft_max_election_timeout_ticks: usize
raft_max_size_per_msg: ReadableSize
raft_max_inflight_msgs: usize
raft_entry_max_size: ReadableSize
raft_log_gc_tick_interval: ReadableDuration
raft_log_gc_threshold: u64
raft_log_gc_count_limit: u64
raft_log_gc_size_limit: ReadableSize
raft_engine_purge_interval: ReadableDuration
raft_entry_cache_life_time: ReadableDuration
raft_reject_transfer_leader_duration: ReadableDuration
split_region_check_tick_interval: ReadableDuration
region_split_check_diff: ReadableSize
When size change of region exceed the diff since last check, it will be checked again whether it should be split.
region_compact_check_interval: ReadableDuration
Interval (ms) to check whether start compaction for a region.
region_compact_check_step: u64
Number of regions for each time checking.
region_compact_min_tombstones: u64
Minimum number of tombstones to trigger manual compaction.
region_compact_tombstones_percent: u64
Minimum percentage of tombstones to trigger manual compaction. Should between 1 and 100.
pd_heartbeat_tick_interval: ReadableDuration
pd_store_heartbeat_tick_interval: ReadableDuration
snap_mgr_gc_tick_interval: ReadableDuration
snap_gc_timeout: ReadableDuration
lock_cf_compact_interval: ReadableDuration
lock_cf_compact_bytes_threshold: ReadableSize
notify_capacity: usize
messages_per_tick: usize
max_peer_down_duration: ReadableDuration
When a peer is not active for max_peer_down_duration, the peer is considered to be down and is reported to PD.
max_leader_missing_duration: ReadableDuration
If the leader of a peer is missing for longer than max_leader_missing_duration, the peer would ask pd to confirm whether it is valid in any region. If the peer is stale and is not valid in any region, it will destroy itself.
abnormal_leader_missing_duration: ReadableDuration
Similar to the max_leader_missing_duration, instead it will log warnings and try to alert monitoring systems, if there is any.
peer_stale_state_check_interval: ReadableDuration
leader_transfer_max_log_lag: u64
snap_apply_batch_size: ReadableSize
consistency_check_interval: ReadableDuration
report_region_flow_interval: ReadableDuration
raft_store_max_leader_lease: ReadableDuration
right_derive_when_split: bool
allow_remove_leader: bool
merge_max_log_gap: u64
Max log gap allowed to propose merge.
merge_check_tick_interval: ReadableDuration
Interval to re-propose merge.
use_delete_range: bool
cleanup_import_sst_interval: ReadableDuration
local_read_batch_size: u64
Maximum size of every local read task batch.
apply_batch_system: BatchSystemConfig
store_batch_system: BatchSystemConfig
future_poll_size: usize
hibernate_regions: bool
apply_yield_duration: ReadableDuration
perf_level: PerfLevel
Implementations
impl Config
[src]
pub fn new() -> Config
[src]
pub fn raft_store_max_leader_lease(&self) -> TimeDuration
[src]
pub fn raft_heartbeat_interval(&self) -> Duration
[src]
pub fn validate(&mut self) -> Result<()>
[src]
pub fn write_into_metrics(&self)
[src]
fn write_change_into_metrics(change: ConfigChange)
[src]
Trait Implementations
impl Clone for Config
[src]
impl<'lt> Configuration<'lt> for Config
[src]
type Encoder = Config_encoder_c626a200461aa863<'lt>
fn update(&mut self, incoming: ConfigChange)
[src]
fn diff(&self, incoming: &Self) -> ConfigChange
[src]
fn get_encoder(&'lt self) -> Self::Encoder
[src]
fn typed(&self) -> ConfigChange
[src]
impl Debug for Config
[src]
impl Default for Config
[src]
impl<'de> Deserialize<'de> for Config where
Config: Default,
[src]
Config: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Config> for Config
[src]
impl Serialize for Config
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Config
[src]
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<V, W> ConvertFrom<W> for V where
W: ConvertTo<V>,
[src]
W: ConvertTo<V>,
pub fn convert_from(ctx: &mut EvalContext, from: W) -> Result<V, Error>
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,