pub struct RuntimeConfig {
pub core_count: usize,
pub raft_group_count: usize,
pub mailbox_capacity: usize,
pub threading: RuntimeThreading,
pub cold_max_hot_bytes_per_group: Option<u64>,
pub raft_max_uncommitted_bytes_per_group: Option<u64>,
pub live_read_max_waiters_per_core: Option<u64>,
}Fields§
§core_count: usize§raft_group_count: usize§mailbox_capacity: usize§threading: RuntimeThreading§cold_max_hot_bytes_per_group: Option<u64>§raft_max_uncommitted_bytes_per_group: Option<u64>Per-group cap on raft-submitted-but-not-yet-applied payload bytes.
None disables the admission (default). Catches “raft replication slow”
before in-memory queues grow unbounded.
live_read_max_waiters_per_core: Option<u64>Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
pub fn new(core_count: usize, raft_group_count: usize) -> Self
pub fn with_cold_max_hot_bytes_per_group(self, value: Option<u64>) -> Self
pub fn with_raft_max_uncommitted_bytes_per_group( self, value: Option<u64>, ) -> Self
pub fn with_live_read_max_waiters_per_core(self, value: Option<u64>) -> Self
Sourcepub fn from_ursula_config(cfg: &RuntimeConfig, raft_group_count: usize) -> Self
pub fn from_ursula_config(cfg: &RuntimeConfig, raft_group_count: usize) -> Self
Build runtime configuration from a typed ursula_config::RuntimeConfig.
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnsafeUnpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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