Skip to content

AutoScaleConfigProps

Properties for defining a AutoScaleConfig.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ehpc-autoscaleconfig

Initializer

import ros_cdk_ehpc
ros_cdk_ehpc.AutoScaleConfigProps(
  cluster_id: typing.Union[str, IResolvable],
  enable_auto_grow: typing.Union[bool, IResolvable] = None,
  enable_auto_shrink: typing.Union[bool, IResolvable] = None,
  exclude_nodes: typing.Union[str, IResolvable] = None,
  extra_nodes_grow_ratio: typing.Union[typing.Union[int, float], IResolvable] = None,
  grow_interval_in_minutes: typing.Union[typing.Union[int, float], IResolvable] = None,
  grow_ratio: typing.Union[typing.Union[int, float], IResolvable] = None,
  grow_timeout_in_minutes: typing.Union[typing.Union[int, float], IResolvable] = None,
  image_id: typing.Union[str, IResolvable] = None,
  max_nodes_in_cluster: typing.Union[typing.Union[int, float], IResolvable] = None,
  queues: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, QueuesProperty]]] = None,
  shrink_idle_times: typing.Union[typing.Union[int, float], IResolvable] = None,
  shrink_interval_in_minutes: typing.Union[typing.Union[int, float], IResolvable] = None,
  spot_price_limit: typing.Union[typing.Union[int, float], IResolvable] = None,
  spot_strategy: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
cluster_id typing.Union[str, ros_cdk_core.IResolvable] Property clusterId: Cluster ID.
enable_auto_grow typing.Union[bool, ros_cdk_core.IResolvable] Property enableAutoGrow: Specifies whether to enable auto scale-out.
enable_auto_shrink typing.Union[bool, ros_cdk_core.IResolvable] Property enableAutoShrink: Specifies whether to enable auto scale-in.
exclude_nodes typing.Union[str, ros_cdk_core.IResolvable] Property excludeNodes: The compute nodes that are excluded from the list of auto scaling nodes.
extra_nodes_grow_ratio typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property extraNodesGrowRatio: The percentage of extra compute nodes.
grow_interval_in_minutes typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property growIntervalInMinutes: The interval between two consecutive rounds of scale-out.
grow_ratio typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property growRatio: The percentage of each round of scale-out.
grow_timeout_in_minutes typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property growTimeoutInMinutes: The scale-out timeout period.
image_id typing.Union[str, ros_cdk_core.IResolvable] Property imageId: The ID of the image.
max_nodes_in_cluster typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property maxNodesInCluster: The maximum number of compute nodes that can be added in the cluster.
queues typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, QueuesProperty]]] Property queues:.
shrink_idle_times typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property shrinkIdleTimes: The number of consecutive times that a compute node is idle during the resource scale-in check.
shrink_interval_in_minutes typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property shrinkIntervalInMinutes: SThe interval between two consecutive rounds of scale-in.
spot_price_limit typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property spotPriceLimit: The maximum hourly price of the compute nodes.
spot_strategy typing.Union[str, ros_cdk_core.IResolvable] Property spotStrategy: The preemption policy of the compute nodes.

cluster_idRequired

cluster_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property clusterId: Cluster ID.


enable_auto_growOptional

enable_auto_grow: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property enableAutoGrow: Specifies whether to enable auto scale-out.

Valid values: true: enables auto scale-out. false: disables auto scale-out Default value: false


enable_auto_shrinkOptional

enable_auto_shrink: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property enableAutoShrink: Specifies whether to enable auto scale-in.

Valid values: true: enables auto scale-in. false: disables auto scale-in Default value: false


exclude_nodesOptional

exclude_nodes: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property excludeNodes: The compute nodes that are excluded from the list of auto scaling nodes.

Separate multiple compute nodes with commas (,). If you want to retain a compute node, you can set the node as an exceptional node. Then, the node is not released if it is idle.


extra_nodes_grow_ratioOptional

extra_nodes_grow_ratio: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property extraNodesGrowRatio: The percentage of extra compute nodes.

Default value: 0


grow_interval_in_minutesOptional

grow_interval_in_minutes: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property growIntervalInMinutes: The interval between two consecutive rounds of scale-out.

Unit: minutes. Default value: 2


grow_ratioOptional

grow_ratio: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property growRatio: The percentage of each round of scale-out.

Default value: 100


grow_timeout_in_minutesOptional

grow_timeout_in_minutes: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property growTimeoutInMinutes: The scale-out timeout period.

Unit: minutes. Default value: 20


image_idOptional

image_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property imageId: The ID of the image.

If you set both Queues.N.QueueImageId and ImageId, Queues.N.QueueImageId prevails. If you set Queues.N.QueueImageId or ImageId, the parameter that you set takes effect. If you leave both Queues.N.QueueImageId and ImageId empty, the image that was specified when you created the cluster or the last time when you scaled out the cluster is used by default.


max_nodes_in_clusterOptional

max_nodes_in_cluster: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property maxNodesInCluster: The maximum number of compute nodes that can be added in the cluster.

Default value: 100


queuesOptional

queues: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, QueuesProperty]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, QueuesProperty]]]

Property queues:.


shrink_idle_timesOptional

shrink_idle_times: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property shrinkIdleTimes: The number of consecutive times that a compute node is idle during the resource scale-in check.

Default value: 3


shrink_interval_in_minutesOptional

shrink_interval_in_minutes: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property shrinkIntervalInMinutes: SThe interval between two consecutive rounds of scale-in.

Unit: minutes. Default value: 2


spot_price_limitOptional

spot_price_limit: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property spotPriceLimit: The maximum hourly price of the compute nodes.

The value can be accurate to three decimal places. The parameter takes effect only when SpotStrategy is set to SpotWithPriceLimit.


spot_strategyOptional

spot_strategy: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property spotStrategy: The preemption policy of the compute nodes.

Valid values: NoSpot: The compute nodes are pay-as-you-go instances. SpotWithPriceLimit: The compute nodes are preemptible instances that have a user-defined maximum hourly price. SpotAsPriceGo: The compute nodes are preemptible instances for which the market price at the time of purchase is used as the bid price. Default value: NoSpot