Skip to content

ApplicationScalingRuleProps

Properties for defining a ApplicationScalingRule.

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

Initializer

import com.aliyun.ros.cdk.sae.ApplicationScalingRuleProps;
ApplicationScalingRuleProps.builder()
    .appId(java.lang.String)
    .appId(IResolvable)
    .scalingRuleName(java.lang.String)
    .scalingRuleName(IResolvable)
    .scalingRuleType(java.lang.String)
    .scalingRuleType(IResolvable)
//  .minReadyInstanceRatio(java.lang.Number)
//  .minReadyInstanceRatio(IResolvable)
//  .minReadyInstances(java.lang.Number)
//  .minReadyInstances(IResolvable)
//  .scalingRuleEnable(java.lang.Boolean)
//  .scalingRuleEnable(IResolvable)
//  .scalingRuleMetric(IResolvable)
//  .scalingRuleMetric(ScalingRuleMetricProperty)
//  .scalingRuleTimer(IResolvable)
//  .scalingRuleTimer(ScalingRuleTimerProperty)
    .build();

Properties

Name Type Description
appId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property appId: The ID of the application.
scalingRuleName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property scalingRuleName: The name of the auto scaling policy.
scalingRuleType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property scalingRuleType: The type of the auto scaling policy.
minReadyInstanceRatio java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property minReadyInstanceRatio: The minimum percentage of surviving instances.
minReadyInstances java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property minReadyInstances: Minimum number of surviving instances.
scalingRuleEnable java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property scalingRuleEnable: Whether to enable the scaling rule.
scalingRuleMetric com.aliyun.ros.cdk.core.IResolvable OR ScalingRuleMetricProperty Property scalingRuleMetric: Configuration of monitoring indicator elasticity policy.
scalingRuleTimer com.aliyun.ros.cdk.core.IResolvable OR ScalingRuleTimerProperty Property scalingRuleTimer: The configuration of the timer scaling policy.

appIdRequired

public java.lang.Object getAppId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property appId: The ID of the application.


scalingRuleNameRequired

public java.lang.Object getScalingRuleName();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getScalingRuleType();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getMinReadyInstanceRatio();
  • Type: java.lang.Number OR com.aliyun.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 java.lang.Object getMinReadyInstances();
  • Type: java.lang.Number OR com.aliyun.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 java.lang.Object getScalingRuleEnable();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property scalingRuleEnable: Whether to enable the scaling rule.


scalingRuleMetricOptional

public java.lang.Object getScalingRuleMetric();

Property scalingRuleMetric: Configuration of monitoring indicator elasticity policy.

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


scalingRuleTimerOptional

public java.lang.Object getScalingRuleTimer();

Property scalingRuleTimer: The configuration of the timer scaling policy.