ApplicationScalingRuleProps
Properties for defining a ApplicationScalingRule
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sae-applicationscalingrule
Initializer
import { ApplicationScalingRuleProps } from '@alicloud/ros-cdk-sae'
const applicationScalingRuleProps: ApplicationScalingRuleProps = { ... }
Properties
Name | Type | Description |
---|---|---|
appId |
string | @alicloud/ros-cdk-core.IResolvable |
Property appId: The ID of the application. |
scalingRuleName |
string | @alicloud/ros-cdk-core.IResolvable |
Property scalingRuleName: The name of the auto scaling policy. |
scalingRuleType |
string | @alicloud/ros-cdk-core.IResolvable |
Property scalingRuleType: The type of the auto scaling policy. |
minReadyInstanceRatio |
number | @alicloud/ros-cdk-core.IResolvable |
Property minReadyInstanceRatio: The minimum percentage of surviving instances. |
minReadyInstances |
number | @alicloud/ros-cdk-core.IResolvable |
Property minReadyInstances: Minimum number of surviving instances. |
scalingRuleEnable |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property scalingRuleEnable: Whether to enable the scaling rule. |
scalingRuleMetric |
@alicloud/ros-cdk-core.IResolvable | ScalingRuleMetricProperty |
Property scalingRuleMetric: Configuration of monitoring indicator elasticity policy. |
scalingRuleTimer |
@alicloud/ros-cdk-core.IResolvable | ScalingRuleTimerProperty |
Property scalingRuleTimer: The configuration of the timer scaling policy. |
appId
Required
public readonly appId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property appId: The ID of the application.
scalingRuleName
Required
public readonly scalingRuleName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
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 readonly scalingRuleType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property scalingRuleType: The type of the auto scaling policy.
Valid values: timer: Timed scaling. metric: Custom metric scaling.mix: mix scaling
minReadyInstanceRatio
Optional
public readonly minReadyInstanceRatio: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
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 readonly minReadyInstances: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
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 readonly scalingRuleEnable: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property scalingRuleEnable: Whether to enable the scaling rule.
scalingRuleMetric
Optional
public readonly scalingRuleMetric: IResolvable | ScalingRuleMetricProperty;
- Type: @alicloud/ros-cdk-core.IResolvable | ScalingRuleMetricProperty
Property scalingRuleMetric: Configuration of monitoring indicator elasticity policy.
This parameter is required when you select monitoring indicator elasticity policy setting.
scalingRuleTimer
Optional
public readonly scalingRuleTimer: IResolvable | ScalingRuleTimerProperty;
- Type: @alicloud/ros-cdk-core.IResolvable | ScalingRuleTimerProperty
Property scalingRuleTimer: The configuration of the timer scaling policy.