Skip to content

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.

appIdRequired

public readonly appId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property appId: The ID of the application.


scalingRuleNameRequired

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.


scalingRuleTypeRequired

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


minReadyInstanceRatioOptional

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.


minReadyInstancesOptional

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.


scalingRuleEnableOptional

public readonly scalingRuleEnable: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

Property scalingRuleEnable: Whether to enable the scaling rule.


scalingRuleMetricOptional

public readonly scalingRuleMetric: IResolvable | ScalingRuleMetricProperty;

Property scalingRuleMetric: Configuration of monitoring indicator elasticity policy.

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


scalingRuleTimerOptional

public readonly scalingRuleTimer: IResolvable | ScalingRuleTimerProperty;

Property scalingRuleTimer: The configuration of the timer scaling policy.