Skip to content

ApplicationScalingRuleProps

Properties for defining a ApplicationScalingRule.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sae-applicationscalingrule

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdksae"
&alicloudroscdksae.ApplicationScalingRuleProps {
    AppId: interface{},
    ScalingRuleName: interface{},
    ScalingRuleType: interface{},
    MinReadyInstanceRatio: interface{},
    MinReadyInstances: interface{},
    ScalingRuleEnable: interface{},
    ScalingRuleMetric: interface{},
    ScalingRuleTimer: interface{},
}

Properties

Name Type Description
AppId interface{} Property appId: The ID of the application.
ScalingRuleName interface{} Property scalingRuleName: The name of the auto scaling policy.
ScalingRuleType interface{} Property scalingRuleType: The type of the auto scaling policy.
MinReadyInstanceRatio interface{} Property minReadyInstanceRatio: The minimum percentage of surviving instances.
MinReadyInstances interface{} Property minReadyInstances: Minimum number of surviving instances.
ScalingRuleEnable interface{} Property scalingRuleEnable: Whether to enable the scaling rule.
ScalingRuleMetric interface{} Property scalingRuleMetric: Configuration of monitoring indicator elasticity policy.
ScalingRuleTimer interface{} Property scalingRuleTimer: The configuration of the timer scaling policy.

AppIdRequired

AppId interface{}
  • Type: interface{}

Property appId: The ID of the application.


ScalingRuleNameRequired

ScalingRuleName interface{}
  • Type: interface{}

Property scalingRuleName: The name of the auto scaling policy.

The name must start with a lowercase letter, and can contain lowercase letters, digits, and hyphens (-).The name must be 1 to 32 characters in length.


ScalingRuleTypeRequired

ScalingRuleType interface{}
  • Type: interface{}

Property scalingRuleType: The type of the auto scaling policy.

Valid values: timer: Timed scaling. metric: Custom metric scaling.mix: mix scaling


MinReadyInstanceRatioOptional

MinReadyInstanceRatio interface{}
  • Type: interface{}

Property minReadyInstanceRatio: The minimum percentage of surviving instances.

The value description is as follows:-1: Initialization value, indicating that the percentage is not used.0~100: The unit is a percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.


MinReadyInstancesOptional

MinReadyInstances interface{}
  • Type: interface{}

Property minReadyInstances: Minimum number of surviving instances.

The value is as follows:If set to 0, the application will be interrupted during the upgrade process.If set to -1, the minimum number of surviving instances will use the system recommended value, which is 25% of the existing number of instances. If there are currently 5 instances, 5×25%=1.25, after rounding up, the minimum number of surviving instances is 2.


ScalingRuleEnableOptional

ScalingRuleEnable interface{}
  • Type: interface{}

Property scalingRuleEnable: Whether to enable the scaling rule.


ScalingRuleMetricOptional

ScalingRuleMetric interface{}
  • Type: interface{}

Property scalingRuleMetric: Configuration of monitoring indicator elasticity policy.

This parameter is required when you select monitoring indicator elasticity policy setting.


ScalingRuleTimerOptional

ScalingRuleTimer interface{}
  • Type: interface{}

Property scalingRuleTimer: The configuration of the timer scaling policy.