Struct aws_sdk_eks::model::NodegroupScalingConfig
source · [−]#[non_exhaustive]pub struct NodegroupScalingConfig {
pub min_size: Option<i32>,
pub max_size: Option<i32>,
pub desired_size: Option<i32>,
}
Expand description
An object representing the scaling configuration details for the Auto Scaling group that is associated with your node group. When creating a node group, you must specify all or none of the properties. When updating a node group, you can specify any or none of the properties.
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.min_size: Option<i32>
The minimum number of nodes that the managed node group can scale in to.
max_size: Option<i32>
The maximum number of nodes that the managed node group can scale out to. For information about the maximum number that you can specify, see Amazon EKS service quotas in the Amazon EKS User Guide.
desired_size: Option<i32>
The current number of nodes that the managed node group should maintain.
If you use Cluster Autoscaler, you shouldn't change the desiredSize value directly, as this can cause the Cluster Autoscaler to suddenly scale up or scale down.
Whenever this parameter changes, the number of worker nodes in the node group is updated to the specified size. If this parameter is given a value that is smaller than the current number of running worker nodes, the necessary number of worker nodes are terminated to match the given value. When using CloudFormation, no action occurs if you remove this parameter from your CFN template.
This parameter can be different from minSize in some cases, such as when starting with extra hosts for testing. This parameter can also be different when you want to start with an estimated number of needed hosts, but let Cluster Autoscaler reduce the number if there are too many. When Cluster Autoscaler is used, the desiredSize parameter is altered by Cluster Autoscaler (but can be out-of-date for short periods of time). Cluster Autoscaler doesn't scale a managed node group lower than minSize or higher than maxSize.
Implementations
sourceimpl NodegroupScalingConfig
impl NodegroupScalingConfig
sourcepub fn min_size(&self) -> Option<i32>
pub fn min_size(&self) -> Option<i32>
The minimum number of nodes that the managed node group can scale in to.
sourcepub fn max_size(&self) -> Option<i32>
pub fn max_size(&self) -> Option<i32>
The maximum number of nodes that the managed node group can scale out to. For information about the maximum number that you can specify, see Amazon EKS service quotas in the Amazon EKS User Guide.
sourcepub fn desired_size(&self) -> Option<i32>
pub fn desired_size(&self) -> Option<i32>
The current number of nodes that the managed node group should maintain.
If you use Cluster Autoscaler, you shouldn't change the desiredSize value directly, as this can cause the Cluster Autoscaler to suddenly scale up or scale down.
Whenever this parameter changes, the number of worker nodes in the node group is updated to the specified size. If this parameter is given a value that is smaller than the current number of running worker nodes, the necessary number of worker nodes are terminated to match the given value. When using CloudFormation, no action occurs if you remove this parameter from your CFN template.
This parameter can be different from minSize in some cases, such as when starting with extra hosts for testing. This parameter can also be different when you want to start with an estimated number of needed hosts, but let Cluster Autoscaler reduce the number if there are too many. When Cluster Autoscaler is used, the desiredSize parameter is altered by Cluster Autoscaler (but can be out-of-date for short periods of time). Cluster Autoscaler doesn't scale a managed node group lower than minSize or higher than maxSize.
sourceimpl NodegroupScalingConfig
impl NodegroupScalingConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NodegroupScalingConfig
Trait Implementations
sourceimpl Clone for NodegroupScalingConfig
impl Clone for NodegroupScalingConfig
sourcefn clone(&self) -> NodegroupScalingConfig
fn clone(&self) -> NodegroupScalingConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NodegroupScalingConfig
impl Debug for NodegroupScalingConfig
sourceimpl PartialEq<NodegroupScalingConfig> for NodegroupScalingConfig
impl PartialEq<NodegroupScalingConfig> for NodegroupScalingConfig
sourcefn eq(&self, other: &NodegroupScalingConfig) -> bool
fn eq(&self, other: &NodegroupScalingConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NodegroupScalingConfig) -> bool
fn ne(&self, other: &NodegroupScalingConfig) -> bool
This method tests for !=
.
impl StructuralPartialEq for NodegroupScalingConfig
Auto Trait Implementations
impl RefUnwindSafe for NodegroupScalingConfig
impl Send for NodegroupScalingConfig
impl Sync for NodegroupScalingConfig
impl Unpin for NodegroupScalingConfig
impl UnwindSafe for NodegroupScalingConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more