#[non_exhaustive]pub struct AutoscalingConfig {
pub autoscaling_limits: Option<AutoscalingLimits>,
pub autoscaling_targets: Option<AutoscalingTargets>,
pub asymmetric_autoscaling_options: Vec<AsymmetricAutoscalingOption>,
/* private fields */
}
Expand description
Autoscaling configuration for an instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.autoscaling_limits: Option<AutoscalingLimits>
Required. Autoscaling limits for an instance.
autoscaling_targets: Option<AutoscalingTargets>
Required. The autoscaling targets for an instance.
asymmetric_autoscaling_options: Vec<AsymmetricAutoscalingOption>
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other.
Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
Implementations§
Source§impl AutoscalingConfig
impl AutoscalingConfig
pub fn new() -> Self
Sourcepub fn set_autoscaling_limits<T>(self, v: T) -> Selfwhere
T: Into<AutoscalingLimits>,
pub fn set_autoscaling_limits<T>(self, v: T) -> Selfwhere
T: Into<AutoscalingLimits>,
Sets the value of autoscaling_limits.
Sourcepub fn set_or_clear_autoscaling_limits<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoscalingLimits>,
pub fn set_or_clear_autoscaling_limits<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoscalingLimits>,
Sets or clears the value of autoscaling_limits.
Sourcepub fn set_autoscaling_targets<T>(self, v: T) -> Selfwhere
T: Into<AutoscalingTargets>,
pub fn set_autoscaling_targets<T>(self, v: T) -> Selfwhere
T: Into<AutoscalingTargets>,
Sets the value of autoscaling_targets.
Sourcepub fn set_or_clear_autoscaling_targets<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoscalingTargets>,
pub fn set_or_clear_autoscaling_targets<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoscalingTargets>,
Sets or clears the value of autoscaling_targets.
Sourcepub fn set_asymmetric_autoscaling_options<T, V>(self, v: T) -> Self
pub fn set_asymmetric_autoscaling_options<T, V>(self, v: T) -> Self
Sets the value of asymmetric_autoscaling_options.
Trait Implementations§
Source§impl Clone for AutoscalingConfig
impl Clone for AutoscalingConfig
Source§fn clone(&self) -> AutoscalingConfig
fn clone(&self) -> AutoscalingConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more