pub struct Config {
pub heartbeat_interval: u64,
pub min_election_timeout: u64,
pub max_election_timeout: u64,
pub max_entries_per_append: usize,
pub max_append_bytes: usize,
pub snapshot_chunk_bytes: usize,
pub max_sessions: usize,
pub max_uncommitted_entries: usize,
}Expand description
Static per-node configuration. All durations are in ticks (virtual milliseconds, supplied by the driver).
Fields§
§heartbeat_interval: u64How often a leader sends heartbeats, in ticks.
min_election_timeout: u64The shortest election timeout a follower or candidate will use.
max_election_timeout: u64The longest election timeout a follower or candidate will use.
max_entries_per_append: usizeThe most entries one AppendEntries message may carry.
max_append_bytes: usizeThe approximate byte budget for one AppendEntries message.
snapshot_chunk_bytes: usizeThe chunk size for InstallSnapshot transfers.
max_sessions: usizeThe most client sessions the KV state machine retains.
max_uncommitted_entries: usizeThe maximum number of uncommitted entries a leader accepts before rejecting new client proposals.
Implementations§
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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