pub struct SimConfig {Show 16 fields
pub seed: u64,
pub shards: u32,
pub workflows: u32,
pub duration_ms: u64,
pub crash_every_ms: u64,
pub tear: bool,
pub flush_fail_per_mille: u32,
pub max_io_ms: u64,
pub max_msg_ms: u64,
pub park_after_ms: u64,
pub checkpoint_interval_ms: u64,
pub segment_bytes: u64,
pub shared_log: bool,
pub offload_bytes: u64,
pub settle_ms: u64,
pub user: Option<UserSetup>,
/* private fields */
}Expand description
Knobs for one simulation run.
Fields§
§seed: u64§shards: u32§workflows: u32§duration_ms: u64Simulated milliseconds of client activity with faults on.
crash_every_ms: u64Mean simulated milliseconds between crashes (0 = never).
tear: bool§flush_fail_per_mille: u32§max_io_ms: u64§max_msg_ms: u64§park_after_ms: u64§checkpoint_interval_ms: u64§segment_bytes: u64Log format 3: the shards share one log ([fusee::wal]); otherwise
each has its own segments.
offload_bytes: u64The shared log offloads records whose encoding is longer than this to its blob area (0: none). Low, so that ordinary records go there.
settle_ms: u64Simulated milliseconds every acknowledged workflow gets to finish once faults stop.
user: Option<UserSetup>A user scenario (crate::scenario) in place of the built-in
workload.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SimConfig
impl !UnwindSafe for SimConfig
impl Forget for SimConfig
impl Freeze for SimConfig
impl Move for SimConfig
impl Send for SimConfig
impl Sync for SimConfig
impl Unpin for SimConfig
impl UnsafeUnpin for SimConfig
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