pub struct PersistConfig {
pub queue_max: usize,
pub batch_max: usize,
pub batch_wait: Duration,
pub batch_enabled: bool,
pub overflow: PersistOverflow,
}Expand description
Queue and batch settings for crate::StoragePersistSink.
Set via crate::SpectraBuilder::persist. Defaults match the previous in-process
behavior (batching on, overflow drop). Callers raise batch_max for high-throughput DW ingest.
Fields§
§queue_max: usizeMax queued persist jobs before overflow policy applies. Default 8192.
batch_max: usizeMax jobs collected into one batch flush. Default 32.
batch_wait: DurationExtra wait when the first collected job is alone, to coalesce. Default 5ms.
batch_enabled: boolWhen true, use record_metrics_batch / append_rows_batch. Default true.
overflow: PersistOverflowOverflow policy when queue_max is reached. Default PersistOverflow::Drop.
Trait Implementations§
Source§impl Clone for PersistConfig
impl Clone for PersistConfig
Source§fn clone(&self) -> PersistConfig
fn clone(&self) -> PersistConfig
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 PersistConfig
impl Debug for PersistConfig
Source§impl Default for PersistConfig
impl Default for PersistConfig
Source§fn default() -> PersistConfig
fn default() -> PersistConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PersistConfig
impl RefUnwindSafe for PersistConfig
impl Send for PersistConfig
impl Sync for PersistConfig
impl Unpin for PersistConfig
impl UnsafeUnpin for PersistConfig
impl UnwindSafe for PersistConfig
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