pub struct AutoScaleConfig {
pub min_size: usize,
pub max_size: usize,
pub target_utilization: f64,
pub evaluation_interval: usize,
pub strategy: ScalingStrategy,
pub cooldown: Duration,
pub debug: bool,
}Expand description
Configuration for automatic queue scaling
Fields§
§min_size: usizeMinimum queue size (never shrink below)
max_size: usizeMaximum queue size (never grow above)
target_utilization: f64Target utilization (0.0 to 1.0)
evaluation_interval: usizeHow often to evaluate scaling (in number of events)
strategy: ScalingStrategyScaling strategy
cooldown: DurationCooldown period between scaling operations
debug: boolEnable debug logging
Trait Implementations§
Source§impl Clone for AutoScaleConfig
impl Clone for AutoScaleConfig
Source§fn clone(&self) -> AutoScaleConfig
fn clone(&self) -> AutoScaleConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 AutoScaleConfig
impl Debug for AutoScaleConfig
Auto Trait Implementations§
impl Freeze for AutoScaleConfig
impl RefUnwindSafe for AutoScaleConfig
impl Send for AutoScaleConfig
impl Sync for AutoScaleConfig
impl Unpin for AutoScaleConfig
impl UnwindSafe for AutoScaleConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter