ApplicationScalingRuleProps
Properties for defining a ApplicationScalingRule
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sae-applicationscalingrule
Initializer
import ros_cdk_sae
ros_cdk_sae.ApplicationScalingRuleProps(
app_id: typing.Union[str, IResolvable],
scaling_rule_name: typing.Union[str, IResolvable],
scaling_rule_type: typing.Union[str, IResolvable],
min_ready_instance_ratio: typing.Union[typing.Union[int, float], IResolvable] = None,
min_ready_instances: typing.Union[typing.Union[int, float], IResolvable] = None,
scaling_rule_enable: typing.Union[bool, IResolvable] = None,
scaling_rule_metric: typing.Union[IResolvable, ScalingRuleMetricProperty] = None,
scaling_rule_timer: typing.Union[IResolvable, ScalingRuleTimerProperty] = None
)
Properties
Name | Type | Description |
---|---|---|
app_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property appId: The ID of the application. |
scaling_rule_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property scalingRuleName: The name of the auto scaling policy. |
scaling_rule_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property scalingRuleType: The type of the auto scaling policy. |
min_ready_instance_ratio |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property minReadyInstanceRatio: The minimum percentage of surviving instances. |
min_ready_instances |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property minReadyInstances: Minimum number of surviving instances. |
scaling_rule_enable |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property scalingRuleEnable: Whether to enable the scaling rule. |
scaling_rule_metric |
typing.Union[ros_cdk_core.IResolvable, ScalingRuleMetricProperty] |
Property scalingRuleMetric: Configuration of monitoring indicator elasticity policy. |
scaling_rule_timer |
typing.Union[ros_cdk_core.IResolvable, ScalingRuleTimerProperty] |
Property scalingRuleTimer: The configuration of the timer scaling policy. |
app_id
Required
app_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property appId: The ID of the application.
scaling_rule_name
Required
scaling_rule_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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.
scaling_rule_type
Required
scaling_rule_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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
min_ready_instance_ratio
Optional
min_ready_instance_ratio: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], 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.
min_ready_instances
Optional
min_ready_instances: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], 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.
scaling_rule_enable
Optional
scaling_rule_enable: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property scalingRuleEnable: Whether to enable the scaling rule.
scaling_rule_metric
Optional
scaling_rule_metric: typing.Union[IResolvable, ScalingRuleMetricProperty]
- Type: typing.Union[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.
scaling_rule_timer
Optional
scaling_rule_timer: typing.Union[IResolvable, ScalingRuleTimerProperty]
- Type: typing.Union[ros_cdk_core.IResolvable, ScalingRuleTimerProperty]
Property scalingRuleTimer: The configuration of the timer scaling policy.