AutoScaleConfigProps
Properties for defining a AutoScaleConfig
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ehpc-autoscaleconfig
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkehpc"
&alicloudroscdkehpc.AutoScaleConfigProps {
ClusterId: interface{},
EnableAutoGrow: interface{},
EnableAutoShrink: interface{},
ExcludeNodes: interface{},
ExtraNodesGrowRatio: interface{},
GrowIntervalInMinutes: interface{},
GrowRatio: interface{},
GrowTimeoutInMinutes: interface{},
ImageId: interface{},
MaxNodesInCluster: interface{},
Queues: interface{},
ShrinkIdleTimes: interface{},
ShrinkIntervalInMinutes: interface{},
SpotPriceLimit: interface{},
SpotStrategy: interface{},
}
Properties
Name | Type | Description |
---|---|---|
ClusterId |
interface{} |
Property clusterId: Cluster ID. |
EnableAutoGrow |
interface{} |
Property enableAutoGrow: Specifies whether to enable auto scale-out. |
EnableAutoShrink |
interface{} |
Property enableAutoShrink: Specifies whether to enable auto scale-in. |
ExcludeNodes |
interface{} |
Property excludeNodes: The compute nodes that are excluded from the list of auto scaling nodes. |
ExtraNodesGrowRatio |
interface{} |
Property extraNodesGrowRatio: The percentage of extra compute nodes. |
GrowIntervalInMinutes |
interface{} |
Property growIntervalInMinutes: The interval between two consecutive rounds of scale-out. |
GrowRatio |
interface{} |
Property growRatio: The percentage of each round of scale-out. |
GrowTimeoutInMinutes |
interface{} |
Property growTimeoutInMinutes: The scale-out timeout period. |
ImageId |
interface{} |
Property imageId: The ID of the image. |
MaxNodesInCluster |
interface{} |
Property maxNodesInCluster: The maximum number of compute nodes that can be added in the cluster. |
Queues |
interface{} |
Property queues:. |
ShrinkIdleTimes |
interface{} |
Property shrinkIdleTimes: The number of consecutive times that a compute node is idle during the resource scale-in check. |
ShrinkIntervalInMinutes |
interface{} |
Property shrinkIntervalInMinutes: SThe interval between two consecutive rounds of scale-in. |
SpotPriceLimit |
interface{} |
Property spotPriceLimit: The maximum hourly price of the compute nodes. |
SpotStrategy |
interface{} |
Property spotStrategy: The preemption policy of the compute nodes. |
ClusterId
Required
ClusterId interface{}
- Type: interface{}
Property clusterId: Cluster ID.
EnableAutoGrow
Optional
EnableAutoGrow interface{}
- Type: interface{}
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
EnableAutoShrink interface{}
- Type: interface{}
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
ExcludeNodes interface{}
- Type: interface{}
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
ExtraNodesGrowRatio interface{}
- Type: interface{}
Property extraNodesGrowRatio: The percentage of extra compute nodes.
Default value: 0
GrowIntervalInMinutes
Optional
GrowIntervalInMinutes interface{}
- Type: interface{}
Property growIntervalInMinutes: The interval between two consecutive rounds of scale-out.
Unit: minutes. Default value: 2
GrowRatio
Optional
GrowRatio interface{}
- Type: interface{}
Property growRatio: The percentage of each round of scale-out.
Default value: 100
GrowTimeoutInMinutes
Optional
GrowTimeoutInMinutes interface{}
- Type: interface{}
Property growTimeoutInMinutes: The scale-out timeout period.
Unit: minutes. Default value: 20
ImageId
Optional
ImageId interface{}
- Type: interface{}
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
MaxNodesInCluster interface{}
- Type: interface{}
Property maxNodesInCluster: The maximum number of compute nodes that can be added in the cluster.
Default value: 100
Queues
Optional
Queues interface{}
- Type: interface{}
Property queues:.
ShrinkIdleTimes
Optional
ShrinkIdleTimes interface{}
- Type: interface{}
Property shrinkIdleTimes: The number of consecutive times that a compute node is idle during the resource scale-in check.
Default value: 3
ShrinkIntervalInMinutes
Optional
ShrinkIntervalInMinutes interface{}
- Type: interface{}
Property shrinkIntervalInMinutes: SThe interval between two consecutive rounds of scale-in.
Unit: minutes. Default value: 2
SpotPriceLimit
Optional
SpotPriceLimit interface{}
- Type: interface{}
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
SpotStrategy interface{}
- Type: interface{}
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