ApplicationScalingRuleProps
Properties for defining a ApplicationScalingRule
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sae-applicationscalingrule
Initializer
using AlibabaCloud.SDK.ROS.CDK.Sae;
new ApplicationScalingRuleProps {
object AppId,
object ScalingRuleName,
object ScalingRuleType,
object MinReadyInstanceRatio = null,
object MinReadyInstances = null,
object ScalingRuleEnable = null,
object ScalingRuleMetric = null,
object ScalingRuleTimer = null
};
Properties
Name | Type | Description |
---|---|---|
AppId |
object |
Property appId: The ID of the application. |
ScalingRuleName |
object |
Property scalingRuleName: The name of the auto scaling policy. |
ScalingRuleType |
object |
Property scalingRuleType: The type of the auto scaling policy. |
MinReadyInstanceRatio |
object |
Property minReadyInstanceRatio: The minimum percentage of surviving instances. |
MinReadyInstances |
object |
Property minReadyInstances: Minimum number of surviving instances. |
ScalingRuleEnable |
object |
Property scalingRuleEnable: Whether to enable the scaling rule. |
ScalingRuleMetric |
object |
Property scalingRuleMetric: Configuration of monitoring indicator elasticity policy. |
ScalingRuleTimer |
object |
Property scalingRuleTimer: The configuration of the timer scaling policy. |
AppId
Required
public object AppId { get; set; }
- Type: object
Property appId: The ID of the application.
ScalingRuleName
Required
public object ScalingRuleName { get; set; }
- Type: object
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.
ScalingRuleType
Required
public object ScalingRuleType { get; set; }
- Type: object
Property scalingRuleType: The type of the auto scaling policy.
Valid values: timer: Timed scaling. metric: Custom metric scaling.mix: mix scaling
MinReadyInstanceRatio
Optional
public object MinReadyInstanceRatio { get; set; }
- Type: object
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.
MinReadyInstances
Optional
public object MinReadyInstances { get; set; }
- Type: object
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.
ScalingRuleEnable
Optional
public object ScalingRuleEnable { get; set; }
- Type: object
Property scalingRuleEnable: Whether to enable the scaling rule.
ScalingRuleMetric
Optional
public object ScalingRuleMetric { get; set; }
- Type: object
Property scalingRuleMetric: Configuration of monitoring indicator elasticity policy.
This parameter is required when you select monitoring indicator elasticity policy setting.
ScalingRuleTimer
Optional
public object ScalingRuleTimer { get; set; }
- Type: object
Property scalingRuleTimer: The configuration of the timer scaling policy.