pub struct AutoScalerConfig {
pub min_workers: usize,
pub max_workers: usize,
pub scale_up_count: usize,
pub scale_down_count: usize,
pub scaling_triggers: ScalingTriggers,
pub enable_adaptive_thresholds: bool,
pub learning_rate: f64,
pub adaptation_window_minutes: u32,
pub scale_up_cooldown_seconds: u64,
pub scale_down_cooldown_seconds: u64,
pub consecutive_signals_required: usize,
pub target_sla: SLATargets,
}
Expand description
Enhanced autoscaler configuration with multi-dimensional scaling triggers
Fields§
§min_workers: usize
§max_workers: usize
§scale_up_count: usize
§scale_down_count: usize
§scaling_triggers: ScalingTriggers
§enable_adaptive_thresholds: bool
§learning_rate: f64
§adaptation_window_minutes: u32
§scale_up_cooldown_seconds: u64
§scale_down_cooldown_seconds: u64
§consecutive_signals_required: usize
§target_sla: SLATargets
Implementations§
Source§impl AutoScalerConfig
impl AutoScalerConfig
pub fn validate(&self) -> Result<(), TaskQueueError>
Trait Implementations§
Source§impl Clone for AutoScalerConfig
impl Clone for AutoScalerConfig
Source§fn clone(&self) -> AutoScalerConfig
fn clone(&self) -> AutoScalerConfig
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 AutoScalerConfig
impl Debug for AutoScalerConfig
Source§impl Default for AutoScalerConfig
impl Default for AutoScalerConfig
Source§impl<'de> Deserialize<'de> for AutoScalerConfig
impl<'de> Deserialize<'de> for AutoScalerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AutoScalerConfig
impl RefUnwindSafe for AutoScalerConfig
impl Send for AutoScalerConfig
impl Sync for AutoScalerConfig
impl Unpin for AutoScalerConfig
impl UnwindSafe for AutoScalerConfig
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