Struct aws_sdk_finspace::types::AutoScalingConfiguration
source · #[non_exhaustive]pub struct AutoScalingConfiguration {
pub min_node_count: Option<i32>,
pub max_node_count: Option<i32>,
pub auto_scaling_metric: Option<AutoScalingMetric>,
pub metric_target: Option<f64>,
pub scale_in_cooldown_seconds: Option<f64>,
pub scale_out_cooldown_seconds: Option<f64>,
}Expand description
The configuration based on which FinSpace will scale in or scale out nodes in your cluster.
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_node_count: Option<i32>The lowest number of nodes to scale. This value must be at least 1 and less than the maxNodeCount. If the nodes in a cluster belong to multiple availability zones, then minNodeCount must be at least 3.
max_node_count: Option<i32>The highest number of nodes to scale. This value cannot be greater than 5.
auto_scaling_metric: Option<AutoScalingMetric> The metric your cluster will track in order to scale in and out. For example, CPU_UTILIZATION_PERCENTAGE is the average CPU usage across all the nodes in a cluster.
metric_target: Option<f64>The desired value of the chosen autoScalingMetric. When the metric drops below this value, the cluster will scale in. When the metric goes above this value, the cluster will scale out. You can set the target value between 1 and 100 percent.
scale_in_cooldown_seconds: Option<f64>The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.
scale_out_cooldown_seconds: Option<f64>The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.
Implementations§
source§impl AutoScalingConfiguration
impl AutoScalingConfiguration
sourcepub fn min_node_count(&self) -> Option<i32>
pub fn min_node_count(&self) -> Option<i32>
The lowest number of nodes to scale. This value must be at least 1 and less than the maxNodeCount. If the nodes in a cluster belong to multiple availability zones, then minNodeCount must be at least 3.
sourcepub fn max_node_count(&self) -> Option<i32>
pub fn max_node_count(&self) -> Option<i32>
The highest number of nodes to scale. This value cannot be greater than 5.
sourcepub fn auto_scaling_metric(&self) -> Option<&AutoScalingMetric>
pub fn auto_scaling_metric(&self) -> Option<&AutoScalingMetric>
The metric your cluster will track in order to scale in and out. For example, CPU_UTILIZATION_PERCENTAGE is the average CPU usage across all the nodes in a cluster.
sourcepub fn metric_target(&self) -> Option<f64>
pub fn metric_target(&self) -> Option<f64>
The desired value of the chosen autoScalingMetric. When the metric drops below this value, the cluster will scale in. When the metric goes above this value, the cluster will scale out. You can set the target value between 1 and 100 percent.
sourcepub fn scale_in_cooldown_seconds(&self) -> Option<f64>
pub fn scale_in_cooldown_seconds(&self) -> Option<f64>
The duration in seconds that FinSpace will wait after a scale in event before initiating another scaling event.
sourcepub fn scale_out_cooldown_seconds(&self) -> Option<f64>
pub fn scale_out_cooldown_seconds(&self) -> Option<f64>
The duration in seconds that FinSpace will wait after a scale out event before initiating another scaling event.
source§impl AutoScalingConfiguration
impl AutoScalingConfiguration
sourcepub fn builder() -> AutoScalingConfigurationBuilder
pub fn builder() -> AutoScalingConfigurationBuilder
Creates a new builder-style object to manufacture AutoScalingConfiguration.
Trait Implementations§
source§impl Clone for AutoScalingConfiguration
impl Clone for AutoScalingConfiguration
source§fn clone(&self) -> AutoScalingConfiguration
fn clone(&self) -> AutoScalingConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AutoScalingConfiguration
impl Debug for AutoScalingConfiguration
source§impl PartialEq for AutoScalingConfiguration
impl PartialEq for AutoScalingConfiguration
source§fn eq(&self, other: &AutoScalingConfiguration) -> bool
fn eq(&self, other: &AutoScalingConfiguration) -> bool
self and other values to be equal, and is used
by ==.