pub struct WorkloadConfig {
pub namespace: String,
pub collection: String,
pub writers: usize,
pub shared_keys: usize,
pub ops_per_writer: usize,
pub unique_per_writer: usize,
pub max_conflict_retries: usize,
pub lifecycle_keys: usize,
pub lifecycle_ops_per_writer: usize,
pub unique_deletes_per_writer: usize,
pub seed_delete_conflict: bool,
}Expand description
Workload shape. The bounded gate and the deep soak both use this; they differ only in the magnitudes and (for the deep soak) running against a duration.
Fields§
§namespace: String§collection: String§writers: usize§ops_per_writer: usize§unique_per_writer: usize§max_conflict_retries: usize§lifecycle_keys: usizeNumber of life-* keys the lifecycle stream races on. Keep it small so
deletes genuinely contend.
lifecycle_ops_per_writer: usizeLifecycle ops (edit/delete/recreate) per writer. 0 disables the stream
and the oracle’s deletion checks.
unique_deletes_per_writer: usizeHow many of each writer’s acked unique keys it deletes afterwards.
seed_delete_conflict: boolRun one scripted read → committed edit → stale conditional delete on a dedicated lifecycle key before the concurrent writers, guaranteeing at least one store-arbitrated delete conflict.
Trait Implementations§
Source§impl Clone for WorkloadConfig
impl Clone for WorkloadConfig
Source§fn clone(&self) -> WorkloadConfig
fn clone(&self) -> WorkloadConfig
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 moreSource§impl Debug for WorkloadConfig
impl Debug for WorkloadConfig
Auto Trait Implementations§
impl Freeze for WorkloadConfig
impl RefUnwindSafe for WorkloadConfig
impl Send for WorkloadConfig
impl Sync for WorkloadConfig
impl Unpin for WorkloadConfig
impl UnsafeUnpin for WorkloadConfig
impl UnwindSafe for WorkloadConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request