#[non_exhaustive]pub struct AutoscalingSettings {
pub autoscaling_policies: HashMap<String, AutoscalingPolicy>,
pub min_cluster_node_count: i32,
pub max_cluster_node_count: i32,
pub cool_down_period: Option<Duration>,
/* private fields */
}Expand description
Autoscaling settings define the rules used by VMware Engine to automatically scale-out and scale-in the clusters in a private cloud.
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_policies: HashMap<String, AutoscalingPolicy>Required. The map with autoscaling policies applied to the cluster. The key is the identifier of the policy. It must meet the following requirements:
- Only contains 1-63 alphanumeric characters and hyphens
- Begins with an alphabetical character
- Ends with a non-hyphen character
- Not formatted as a UUID
- Complies with RFC 1034 (section 3.5)
Currently there map must contain only one element that describes the autoscaling policy for compute nodes.
min_cluster_node_count: i32Optional. Minimum number of nodes of any type in a cluster. If not specified the default limits apply.
max_cluster_node_count: i32Optional. Maximum number of nodes of any type in a cluster. If not specified the default limits apply.
cool_down_period: Option<Duration>Optional. The minimum duration between consecutive autoscale operations. It starts once addition or removal of nodes is fully completed. Defaults to 30 minutes if not specified. Cool down period must be in whole minutes (for example, 30, 31, 50, 180 minutes).
Implementations§
Source§impl AutoscalingSettings
impl AutoscalingSettings
pub fn new() -> Self
Sourcepub fn set_autoscaling_policies<T, K, V>(self, v: T) -> Self
pub fn set_autoscaling_policies<T, K, V>(self, v: T) -> Self
Sets the value of autoscaling_policies.
Sourcepub fn set_min_cluster_node_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_min_cluster_node_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of min_cluster_node_count.
Sourcepub fn set_max_cluster_node_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_cluster_node_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of max_cluster_node_count.
Sourcepub fn set_cool_down_period<T>(self, v: T) -> Self
pub fn set_cool_down_period<T>(self, v: T) -> Self
Sets the value of cool_down_period.
Sourcepub fn set_or_clear_cool_down_period<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_cool_down_period<T>(self, v: Option<T>) -> Self
Sets or clears the value of cool_down_period.
Trait Implementations§
Source§impl Clone for AutoscalingSettings
impl Clone for AutoscalingSettings
Source§fn clone(&self) -> AutoscalingSettings
fn clone(&self) -> AutoscalingSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more