AutoScaleConfigProps
Properties for defining a AutoScaleConfig
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ehpc-autoscaleconfig
Initializer
import com.aliyun.ros.cdk.ehpc.AutoScaleConfigProps;
AutoScaleConfigProps.builder()
.clusterId(java.lang.String)
.clusterId(IResolvable)
// .enableAutoGrow(java.lang.Boolean)
// .enableAutoGrow(IResolvable)
// .enableAutoShrink(java.lang.Boolean)
// .enableAutoShrink(IResolvable)
// .excludeNodes(java.lang.String)
// .excludeNodes(IResolvable)
// .extraNodesGrowRatio(java.lang.Number)
// .extraNodesGrowRatio(IResolvable)
// .growIntervalInMinutes(java.lang.Number)
// .growIntervalInMinutes(IResolvable)
// .growRatio(java.lang.Number)
// .growRatio(IResolvable)
// .growTimeoutInMinutes(java.lang.Number)
// .growTimeoutInMinutes(IResolvable)
// .imageId(java.lang.String)
// .imageId(IResolvable)
// .maxNodesInCluster(java.lang.Number)
// .maxNodesInCluster(IResolvable)
// .queues(IResolvable)
// .queues(java.util.List<IResolvable)
// .queues(QueuesProperty>)
// .shrinkIdleTimes(java.lang.Number)
// .shrinkIdleTimes(IResolvable)
// .shrinkIntervalInMinutes(java.lang.Number)
// .shrinkIntervalInMinutes(IResolvable)
// .spotPriceLimit(java.lang.Number)
// .spotPriceLimit(IResolvable)
// .spotStrategy(java.lang.String)
// .spotStrategy(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
clusterId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property clusterId: Cluster ID. |
enableAutoGrow |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property enableAutoGrow: Specifies whether to enable auto scale-out. |
enableAutoShrink |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property enableAutoShrink: Specifies whether to enable auto scale-in. |
excludeNodes |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property excludeNodes: The compute nodes that are excluded from the list of auto scaling nodes. |
extraNodesGrowRatio |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property extraNodesGrowRatio: The percentage of extra compute nodes. |
growIntervalInMinutes |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property growIntervalInMinutes: The interval between two consecutive rounds of scale-out. |
growRatio |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property growRatio: The percentage of each round of scale-out. |
growTimeoutInMinutes |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property growTimeoutInMinutes: The scale-out timeout period. |
imageId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property imageId: The ID of the image. |
maxNodesInCluster |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property maxNodesInCluster: The maximum number of compute nodes that can be added in the cluster. |
queues |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property queues:. |
shrinkIdleTimes |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property shrinkIdleTimes: The number of consecutive times that a compute node is idle during the resource scale-in check. |
shrinkIntervalInMinutes |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property shrinkIntervalInMinutes: SThe interval between two consecutive rounds of scale-in. |
spotPriceLimit |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property spotPriceLimit: The maximum hourly price of the compute nodes. |
spotStrategy |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property spotStrategy: The preemption policy of the compute nodes. |
clusterId
Required
public java.lang.Object getClusterId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterId: Cluster ID.
enableAutoGrow
Optional
public java.lang.Object getEnableAutoGrow();
- Type: java.lang.Boolean OR com.aliyun.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 java.lang.Object getEnableAutoShrink();
- Type: java.lang.Boolean OR com.aliyun.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 java.lang.Object getExcludeNodes();
- Type: java.lang.String OR com.aliyun.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 java.lang.Object getExtraNodesGrowRatio();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property extraNodesGrowRatio: The percentage of extra compute nodes.
Default value: 0
growIntervalInMinutes
Optional
public java.lang.Object getGrowIntervalInMinutes();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property growIntervalInMinutes: The interval between two consecutive rounds of scale-out.
Unit: minutes. Default value: 2
growRatio
Optional
public java.lang.Object getGrowRatio();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property growRatio: The percentage of each round of scale-out.
Default value: 100
growTimeoutInMinutes
Optional
public java.lang.Object getGrowTimeoutInMinutes();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property growTimeoutInMinutes: The scale-out timeout period.
Unit: minutes. Default value: 20
imageId
Optional
public java.lang.Object getImageId();
- Type: java.lang.String OR com.aliyun.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 java.lang.Object getMaxNodesInCluster();
- Type: java.lang.Number OR com.aliyun.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 java.lang.Object getQueues();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
QueuesProperty>
Property queues:.
shrinkIdleTimes
Optional
public java.lang.Object getShrinkIdleTimes();
- Type: java.lang.Number OR com.aliyun.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 java.lang.Object getShrinkIntervalInMinutes();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property shrinkIntervalInMinutes: SThe interval between two consecutive rounds of scale-in.
Unit: minutes. Default value: 2
spotPriceLimit
Optional
public java.lang.Object getSpotPriceLimit();
- Type: java.lang.Number OR com.aliyun.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 java.lang.Object getSpotStrategy();
- Type: java.lang.String OR com.aliyun.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