Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.27.0 published on Monday, Aug 8, 2022 by Pulumi

AutoscalingConfig

Create a AutoscalingConfig Resource

new AutoscalingConfig(name: string, args?: AutoscalingConfigArgs, opts?: CustomResourceOptions);
@overload
def AutoscalingConfig(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      cluster_id: Optional[str] = None,
                      cool_down_duration: Optional[str] = None,
                      expander: Optional[str] = None,
                      gpu_utilization_threshold: Optional[str] = None,
                      scale_down_enabled: Optional[bool] = None,
                      scan_interval: Optional[str] = None,
                      unneeded_duration: Optional[str] = None,
                      utilization_threshold: Optional[str] = None)
@overload
def AutoscalingConfig(resource_name: str,
                      args: Optional[AutoscalingConfigArgs] = None,
                      opts: Optional[ResourceOptions] = None)
func NewAutoscalingConfig(ctx *Context, name string, args *AutoscalingConfigArgs, opts ...ResourceOption) (*AutoscalingConfig, error)
public AutoscalingConfig(string name, AutoscalingConfigArgs? args = null, CustomResourceOptions? opts = null)
public AutoscalingConfig(String name, AutoscalingConfigArgs args)
public AutoscalingConfig(String name, AutoscalingConfigArgs args, CustomResourceOptions options)
type: alicloud:cs:AutoscalingConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AutoscalingConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AutoscalingConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AutoscalingConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AutoscalingConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AutoscalingConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AutoscalingConfig Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The AutoscalingConfig resource accepts the following input properties:

ClusterId string

The id of kubernetes cluster.

CoolDownDuration string

The cool down duration. Default is 10m. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.

Expander string

The policy for selecting which node pool to scale. Valid values: least-waste, random, priority. For more information on these policies, see Configure auto scaling

GpuUtilizationThreshold string

The scale-in threshold for GPU instance. Default is 0.5.

ScaleDownEnabled bool

Specify whether to allow the scale-in of nodes. Default is true.

ScanInterval string

The interval at which the cluster is reevaluated for scaling. Default is 30s.

UnneededDuration string

The unneeded duration. Default is 10m.

UtilizationThreshold string

The scale-in threshold. Default is 0.5.

ClusterId string

The id of kubernetes cluster.

CoolDownDuration string

The cool down duration. Default is 10m. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.

Expander string

The policy for selecting which node pool to scale. Valid values: least-waste, random, priority. For more information on these policies, see Configure auto scaling

GpuUtilizationThreshold string

The scale-in threshold for GPU instance. Default is 0.5.

ScaleDownEnabled bool

Specify whether to allow the scale-in of nodes. Default is true.

ScanInterval string

The interval at which the cluster is reevaluated for scaling. Default is 30s.

UnneededDuration string

The unneeded duration. Default is 10m.

UtilizationThreshold string

The scale-in threshold. Default is 0.5.

clusterId String

The id of kubernetes cluster.

coolDownDuration String

The cool down duration. Default is 10m. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.

expander String

The policy for selecting which node pool to scale. Valid values: least-waste, random, priority. For more information on these policies, see Configure auto scaling

gpuUtilizationThreshold String

The scale-in threshold for GPU instance. Default is 0.5.

scaleDownEnabled Boolean

Specify whether to allow the scale-in of nodes. Default is true.

scanInterval String

The interval at which the cluster is reevaluated for scaling. Default is 30s.

unneededDuration String

The unneeded duration. Default is 10m.

utilizationThreshold String

The scale-in threshold. Default is 0.5.

clusterId string

The id of kubernetes cluster.

coolDownDuration string

The cool down duration. Default is 10m. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.

expander string

The policy for selecting which node pool to scale. Valid values: least-waste, random, priority. For more information on these policies, see Configure auto scaling

gpuUtilizationThreshold string

The scale-in threshold for GPU instance. Default is 0.5.

scaleDownEnabled boolean

Specify whether to allow the scale-in of nodes. Default is true.

scanInterval string

The interval at which the cluster is reevaluated for scaling. Default is 30s.

unneededDuration string

The unneeded duration. Default is 10m.

utilizationThreshold string

The scale-in threshold. Default is 0.5.

cluster_id str

The id of kubernetes cluster.

cool_down_duration str

The cool down duration. Default is 10m. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.

expander str

The policy for selecting which node pool to scale. Valid values: least-waste, random, priority. For more information on these policies, see Configure auto scaling

gpu_utilization_threshold str

The scale-in threshold for GPU instance. Default is 0.5.

scale_down_enabled bool

Specify whether to allow the scale-in of nodes. Default is true.

scan_interval str

The interval at which the cluster is reevaluated for scaling. Default is 30s.

unneeded_duration str

The unneeded duration. Default is 10m.

utilization_threshold str

The scale-in threshold. Default is 0.5.

clusterId String

The id of kubernetes cluster.

coolDownDuration String

The cool down duration. Default is 10m. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.

expander String

The policy for selecting which node pool to scale. Valid values: least-waste, random, priority. For more information on these policies, see Configure auto scaling

gpuUtilizationThreshold String

The scale-in threshold for GPU instance. Default is 0.5.

scaleDownEnabled Boolean

Specify whether to allow the scale-in of nodes. Default is true.

scanInterval String

The interval at which the cluster is reevaluated for scaling. Default is 30s.

unneededDuration String

The unneeded duration. Default is 10m.

utilizationThreshold String

The scale-in threshold. Default is 0.5.

Outputs

All input properties are implicitly available as output properties. Additionally, the AutoscalingConfig resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing AutoscalingConfig Resource

Get an existing AutoscalingConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AutoscalingConfigState, opts?: CustomResourceOptions): AutoscalingConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cluster_id: Optional[str] = None,
        cool_down_duration: Optional[str] = None,
        expander: Optional[str] = None,
        gpu_utilization_threshold: Optional[str] = None,
        scale_down_enabled: Optional[bool] = None,
        scan_interval: Optional[str] = None,
        unneeded_duration: Optional[str] = None,
        utilization_threshold: Optional[str] = None) -> AutoscalingConfig
func GetAutoscalingConfig(ctx *Context, name string, id IDInput, state *AutoscalingConfigState, opts ...ResourceOption) (*AutoscalingConfig, error)
public static AutoscalingConfig Get(string name, Input<string> id, AutoscalingConfigState? state, CustomResourceOptions? opts = null)
public static AutoscalingConfig get(String name, Output<String> id, AutoscalingConfigState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ClusterId string

The id of kubernetes cluster.

CoolDownDuration string

The cool down duration. Default is 10m. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.

Expander string

The policy for selecting which node pool to scale. Valid values: least-waste, random, priority. For more information on these policies, see Configure auto scaling

GpuUtilizationThreshold string

The scale-in threshold for GPU instance. Default is 0.5.

ScaleDownEnabled bool

Specify whether to allow the scale-in of nodes. Default is true.

ScanInterval string

The interval at which the cluster is reevaluated for scaling. Default is 30s.

UnneededDuration string

The unneeded duration. Default is 10m.

UtilizationThreshold string

The scale-in threshold. Default is 0.5.

ClusterId string

The id of kubernetes cluster.

CoolDownDuration string

The cool down duration. Default is 10m. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.

Expander string

The policy for selecting which node pool to scale. Valid values: least-waste, random, priority. For more information on these policies, see Configure auto scaling

GpuUtilizationThreshold string

The scale-in threshold for GPU instance. Default is 0.5.

ScaleDownEnabled bool

Specify whether to allow the scale-in of nodes. Default is true.

ScanInterval string

The interval at which the cluster is reevaluated for scaling. Default is 30s.

UnneededDuration string

The unneeded duration. Default is 10m.

UtilizationThreshold string

The scale-in threshold. Default is 0.5.

clusterId String

The id of kubernetes cluster.

coolDownDuration String

The cool down duration. Default is 10m. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.

expander String

The policy for selecting which node pool to scale. Valid values: least-waste, random, priority. For more information on these policies, see Configure auto scaling

gpuUtilizationThreshold String

The scale-in threshold for GPU instance. Default is 0.5.

scaleDownEnabled Boolean

Specify whether to allow the scale-in of nodes. Default is true.

scanInterval String

The interval at which the cluster is reevaluated for scaling. Default is 30s.

unneededDuration String

The unneeded duration. Default is 10m.

utilizationThreshold String

The scale-in threshold. Default is 0.5.

clusterId string

The id of kubernetes cluster.

coolDownDuration string

The cool down duration. Default is 10m. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.

expander string

The policy for selecting which node pool to scale. Valid values: least-waste, random, priority. For more information on these policies, see Configure auto scaling

gpuUtilizationThreshold string

The scale-in threshold for GPU instance. Default is 0.5.

scaleDownEnabled boolean

Specify whether to allow the scale-in of nodes. Default is true.

scanInterval string

The interval at which the cluster is reevaluated for scaling. Default is 30s.

unneededDuration string

The unneeded duration. Default is 10m.

utilizationThreshold string

The scale-in threshold. Default is 0.5.

cluster_id str

The id of kubernetes cluster.

cool_down_duration str

The cool down duration. Default is 10m. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.

expander str

The policy for selecting which node pool to scale. Valid values: least-waste, random, priority. For more information on these policies, see Configure auto scaling

gpu_utilization_threshold str

The scale-in threshold for GPU instance. Default is 0.5.

scale_down_enabled bool

Specify whether to allow the scale-in of nodes. Default is true.

scan_interval str

The interval at which the cluster is reevaluated for scaling. Default is 30s.

unneeded_duration str

The unneeded duration. Default is 10m.

utilization_threshold str

The scale-in threshold. Default is 0.5.

clusterId String

The id of kubernetes cluster.

coolDownDuration String

The cool down duration. Default is 10m. If the delay (cooldown) value is set too long, there could be complaints that the Horizontal Pod Autoscaler is not responsive to workload changes. However, if the delay value is set too short, the scale of the replicas set may keep thrashing as usual.

expander String

The policy for selecting which node pool to scale. Valid values: least-waste, random, priority. For more information on these policies, see Configure auto scaling

gpuUtilizationThreshold String

The scale-in threshold for GPU instance. Default is 0.5.

scaleDownEnabled Boolean

Specify whether to allow the scale-in of nodes. Default is true.

scanInterval String

The interval at which the cluster is reevaluated for scaling. Default is 30s.

unneededDuration String

The unneeded duration. Default is 10m.

utilizationThreshold String

The scale-in threshold. Default is 0.5.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.