AutoScaleConfigProps
Properties for defining a AutoScaleConfig
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ehpc-autoscaleconfig
Initializer
import { AutoScaleConfigProps } from '@alicloud/ros-cdk-ehpc'
const autoScaleConfigProps: AutoScaleConfigProps = { ... }
Properties
Name | Type | Description |
---|---|---|
clusterId |
string | @alicloud/ros-cdk-core.IResolvable |
Property clusterId: Cluster ID. |
enableAutoGrow |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property enableAutoGrow: Specifies whether to enable auto scale-out. |
enableAutoShrink |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property enableAutoShrink: Specifies whether to enable auto scale-in. |
excludeNodes |
string | @alicloud/ros-cdk-core.IResolvable |
Property excludeNodes: The compute nodes that are excluded from the list of auto scaling nodes. |
extraNodesGrowRatio |
number | @alicloud/ros-cdk-core.IResolvable |
Property extraNodesGrowRatio: The percentage of extra compute nodes. |
growIntervalInMinutes |
number | @alicloud/ros-cdk-core.IResolvable |
Property growIntervalInMinutes: The interval between two consecutive rounds of scale-out. |
growRatio |
number | @alicloud/ros-cdk-core.IResolvable |
Property growRatio: The percentage of each round of scale-out. |
growTimeoutInMinutes |
number | @alicloud/ros-cdk-core.IResolvable |
Property growTimeoutInMinutes: The scale-out timeout period. |
imageId |
string | @alicloud/ros-cdk-core.IResolvable |
Property imageId: The ID of the image. |
maxNodesInCluster |
number | @alicloud/ros-cdk-core.IResolvable |
Property maxNodesInCluster: The maximum number of compute nodes that can be added in the cluster. |
queues |
@alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | QueuesProperty[] |
Property queues:. |
shrinkIdleTimes |
number | @alicloud/ros-cdk-core.IResolvable |
Property shrinkIdleTimes: The number of consecutive times that a compute node is idle during the resource scale-in check. |
shrinkIntervalInMinutes |
number | @alicloud/ros-cdk-core.IResolvable |
Property shrinkIntervalInMinutes: SThe interval between two consecutive rounds of scale-in. |
spotPriceLimit |
number | @alicloud/ros-cdk-core.IResolvable |
Property spotPriceLimit: The maximum hourly price of the compute nodes. |
spotStrategy |
string | @alicloud/ros-cdk-core.IResolvable |
Property spotStrategy: The preemption policy of the compute nodes. |
clusterId
Required
public readonly clusterId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property clusterId: Cluster ID.
enableAutoGrow
Optional
public readonly enableAutoGrow: boolean | IResolvable;
- Type: boolean | @alicloud/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
enableAutoShrink
Optional
public readonly enableAutoShrink: boolean | IResolvable;
- Type: boolean | @alicloud/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
excludeNodes
Optional
public readonly excludeNodes: string | IResolvable;
- Type: string | @alicloud/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.
extraNodesGrowRatio
Optional
public readonly extraNodesGrowRatio: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property extraNodesGrowRatio: The percentage of extra compute nodes.
Default value: 0
growIntervalInMinutes
Optional
public readonly growIntervalInMinutes: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property growIntervalInMinutes: The interval between two consecutive rounds of scale-out.
Unit: minutes. Default value: 2
growRatio
Optional
public readonly growRatio: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property growRatio: The percentage of each round of scale-out.
Default value: 100
growTimeoutInMinutes
Optional
public readonly growTimeoutInMinutes: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property growTimeoutInMinutes: The scale-out timeout period.
Unit: minutes. Default value: 20
imageId
Optional
public readonly imageId: string | IResolvable;
- Type: string | @alicloud/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.
maxNodesInCluster
Optional
public readonly maxNodesInCluster: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property maxNodesInCluster: The maximum number of compute nodes that can be added in the cluster.
Default value: 100
queues
Optional
public readonly queues: IResolvable | IResolvable | QueuesProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | QueuesProperty[]
Property queues:.
shrinkIdleTimes
Optional
public readonly shrinkIdleTimes: number | IResolvable;
- Type: number | @alicloud/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
shrinkIntervalInMinutes
Optional
public readonly shrinkIntervalInMinutes: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property shrinkIntervalInMinutes: SThe interval between two consecutive rounds of scale-in.
Unit: minutes. Default value: 2
spotPriceLimit
Optional
public readonly spotPriceLimit: number | IResolvable;
- Type: number | @alicloud/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.
spotStrategy
Optional
public readonly spotStrategy: string | IResolvable;
- Type: string | @alicloud/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