Skip to content

AutoScaleConfigProps

Properties for defining a AutoScaleConfig.

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

Initializer

using AlibabaCloud.SDK.ROS.CDK.Ehpc;
new AutoScaleConfigProps {
    object ClusterId,
    object EnableAutoGrow = null,
    object EnableAutoShrink = null,
    object ExcludeNodes = null,
    object ExtraNodesGrowRatio = null,
    object GrowIntervalInMinutes = null,
    object GrowRatio = null,
    object GrowTimeoutInMinutes = null,
    object ImageId = null,
    object MaxNodesInCluster = null,
    object Queues = null,
    object ShrinkIdleTimes = null,
    object ShrinkIntervalInMinutes = null,
    object SpotPriceLimit = null,
    object SpotStrategy = null
};

Properties

Name Type Description
ClusterId object Property clusterId: Cluster ID.
EnableAutoGrow object Property enableAutoGrow: Specifies whether to enable auto scale-out.
EnableAutoShrink object Property enableAutoShrink: Specifies whether to enable auto scale-in.
ExcludeNodes object Property excludeNodes: The compute nodes that are excluded from the list of auto scaling nodes.
ExtraNodesGrowRatio object Property extraNodesGrowRatio: The percentage of extra compute nodes.
GrowIntervalInMinutes object Property growIntervalInMinutes: The interval between two consecutive rounds of scale-out.
GrowRatio object Property growRatio: The percentage of each round of scale-out.
GrowTimeoutInMinutes object Property growTimeoutInMinutes: The scale-out timeout period.
ImageId object Property imageId: The ID of the image.
MaxNodesInCluster object Property maxNodesInCluster: The maximum number of compute nodes that can be added in the cluster.
Queues object Property queues:.
ShrinkIdleTimes object Property shrinkIdleTimes: The number of consecutive times that a compute node is idle during the resource scale-in check.
ShrinkIntervalInMinutes object Property shrinkIntervalInMinutes: SThe interval between two consecutive rounds of scale-in.
SpotPriceLimit object Property spotPriceLimit: The maximum hourly price of the compute nodes.
SpotStrategy object Property spotStrategy: The preemption policy of the compute nodes.

ClusterIdRequired

public object ClusterId { get; set; }
  • Type: object

Property clusterId: Cluster ID.


EnableAutoGrowOptional

public object EnableAutoGrow { get; set; }
  • Type: object

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

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


EnableAutoShrinkOptional

public object EnableAutoShrink { get; set; }
  • Type: object

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

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


ExcludeNodesOptional

public object ExcludeNodes { get; set; }
  • Type: object

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.


ExtraNodesGrowRatioOptional

public object ExtraNodesGrowRatio { get; set; }
  • Type: object

Property extraNodesGrowRatio: The percentage of extra compute nodes.

Default value: 0


GrowIntervalInMinutesOptional

public object GrowIntervalInMinutes { get; set; }
  • Type: object

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

Unit: minutes. Default value: 2


GrowRatioOptional

public object GrowRatio { get; set; }
  • Type: object

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

Default value: 100


GrowTimeoutInMinutesOptional

public object GrowTimeoutInMinutes { get; set; }
  • Type: object

Property growTimeoutInMinutes: The scale-out timeout period.

Unit: minutes. Default value: 20


ImageIdOptional

public object ImageId { get; set; }
  • Type: object

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.


MaxNodesInClusterOptional

public object MaxNodesInCluster { get; set; }
  • Type: object

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

Default value: 100


QueuesOptional

public object Queues { get; set; }
  • Type: object

Property queues:.


ShrinkIdleTimesOptional

public object ShrinkIdleTimes { get; set; }
  • Type: object

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

Default value: 3


ShrinkIntervalInMinutesOptional

public object ShrinkIntervalInMinutes { get; set; }
  • Type: object

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

Unit: minutes. Default value: 2


SpotPriceLimitOptional

public object SpotPriceLimit { get; set; }
  • Type: object

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.


SpotStrategyOptional

public object SpotStrategy { get; set; }
  • Type: object

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