| object | | |
| RequestId | string | | 73404D3D-EE4F-4CB2-B197-5C46F6A1**** |
| TraceId | string | The ID of the trace. The ID is used to query the details of a request. | 0b57ff7e16243300839193068e**** |
| Data | object | | |
| Timer | object | The details of the scheduled auto scaling policy. | |
| EndDate | string | The end date of the validity period of the scheduled auto scaling policy. Valid values:
- If both the BeginDate and EndDate parameters are set to null, the auto scaling policy can always be triggered. The default value for these parameters is null.
- If the two parameters are set to specific dates, the scheduled auto scaling policy can be triggered during the period between the two dates. For example, if BeginDate is 2021-03-25 and EndDate is 2021-04-25, the auto scaling policy is valid for one month.
| 2021-04-25 |
| BeginDate | string | The start date of the validity period of the scheduled auto scaling policy. Valid values:
- If both the BeginDate and EndDate parameters are set to null, the auto scaling policy can always be triggered. The default value for these parameters is null.
- If the two parameters are set to specific dates, the scheduled auto scaling policy can be triggered during the period between the two dates. For example, if BeginDate is 2021-03-25 and EndDate is 2021-04-25, the auto scaling policy is valid for one month.
| 2021-03-25 |
| Schedules | array<object> | The points in time when the auto scaling policy is triggered within one day. | |
| Schedule | object | | |
| AtTime | string | The point in time. Format: Hour:Minute. | 08:00 |
| TargetReplicas | integer | The expected number of instances. | 2 |
| Period | string | The days on which the scheduled auto scaling policy takes effect. Valid values:
-
* * *: The scheduled auto scaling policy takes effect at a specified time every day.
-
* * Fri,Mon: The scheduled auto scaling policy takes effect at a specified time on one or multiple days of a week. The specified time is in the GMT+8 time zone. Valid values:
- Sun: Sunday
- Mon: Monday
- Tue: Tuesday
- Wed: Wednesday
- Thu: Thursday
- Fri: Friday
- Sat: Saturday
-
1,2,3,28,31 * *: The scheduled auto scaling policy takes effect at a specified time on one or multiple days of a month. Valid values: 1 to 31. If the month does not have a 31st day, the auto scaling policy takes effect on the specified days other than the 31st day.
| * * * |
| UpdateTime | long | The time when the auto scaling policy was updated. Unit: milliseconds. | 1624330075827 |
| AppId | string | The ID of the application. | a0d2e04c-159d-40a8-b240-d2f2c263**** |
| CreateTime | long | The time when the auto scaling policy was created. Unit: milliseconds. | 1624329843790 |
| LastDisableTime | long | The time when the auto scaling policy was last disabled. | 1641882854484 |
| ScaleRuleEnabled | boolean | Indicates whether the auto scaling policy is enabled. Valid values:
- true: enabled
- false: disabled
| true |
| ScaleRuleType | string | The type of the auto scaling policy. Valid values:
- timing: the scheduled auto scaling policy.
- metric: the metric-based auto scaling policy.
- mix: the hybrid auto scaling policy.
| timing |
| Metric | object | The details of the metric-based auto scaling policy. | |
| Metrics | array<object> | The list of metrics that are used to trigger the auto scaling policy. | |
| Metric | object | | |
| MetricTargetAverageUtilization | integer | The limit on the metric.
- The limit on the CPU utilization. Unit: percentage.
- The limit on the memory usage. Unit: percentage.
- The limit on the average number of active TCP connections per second.
- The limit on the QPS of the Internet-facing SLB instance.
- The limit on the response time of the Internet-facing SLB instance. Unit: milliseconds.
| 20 |
| MetricType | string | The metric that is used to trigger the auto scaling policy. Valid values:
- CPU: the CPU utilization.
- MEMORY: the memory usage.
- tcpActiveConn: the average number of active TCP connections for an instance in 30 seconds.
- SLB_QPS: the average QPS of the Internet-facing SLB instance associated with an application instance in 15 seconds.
- SLB_RT: the average response time of the Internet-facing SLB instance in 15 seconds.
| CPU |
| MetricsStatus | object | The execution status of the metric-based auto scaling policy. | |
| DesiredReplicas | long | The expected number of instances. | 2 |
| NextScaleTimePeriod | integer | The duration for which the metric-based auto scaling policy takes effect next time. | 3 |
| CurrentReplicas | long | The current number of instances. | 2 |
| LastScaleTime | string | The time when the auto scaling policy was last triggered. | 2022-01-11T08:14:32Z |
| CurrentMetrics | array<object> | The metrics that is used to trigger the current auto scaling policy. | |
| CurrentMetric | object | | |
| Type | string | The type of the data. This parameter corresponds to the metric.
- Resource: used when the metric is the CPU utilization or memory usage.
- Pods: used when the metric is the number of active TCP connections.
- External: used when the metric is about the SLB instance or from Application Real-Time Monitoring Service (ARMS).
| Resource |
| CurrentValue | long | The current value of the metric. | 0 |
| Name | string | The name of the metric.
- cpu: the CPU utilization.
- memory: the memory usage.
- tcpActiveConn: the number of active TCP connections.
- slb_incall_qps: the QPS of the Internet-facing SLB instance.
- slb_incall_rt: the response time of the Internet-facing SLB instance.
| cpu |
| NextScaleMetrics | array<object> | The metrics that are used to trigger the auto scaling policy next time. | |
| NextScaleMetric | object | | |
| NextScaleOutAverageUtilization | integer | The metric value as a percentage that triggers the application scale-out next time. | 21 |
| NextScaleInAverageUtilization | integer | The metric value as a percentage that triggers the application scale-in next time. | 10 |
| Name | string | The name of the metric.
- cpu: the CPU utilization.
- memory: the memory usage.
- tcpActiveConn: the number of active TCP connections.
- slb_incall_qps: the QPS of the Internet-facing SLB instance.
- slb_incall_rt: the response time of the Internet-facing SLB instance.
| cpu |
| MaxReplicas | integer | The maximum number of instances. | 3 |
| MinReplicas | integer | The minimum number of instances. | 1 |
| ScaleUpRules | object | Rules that determine the application scale-out. | |
| Step | long | The step size for the scale-out. The maximum number of instances that can be added within a specific period of time. | 100 |
| StabilizationWindowSeconds | long | The cooldown time of the scale-out. Valid values: 0 to 3600. Unit: seconds. Default value: 0. | 300 |
| Disabled | boolean | Indicates whether the application scale-in is disabled. Valid values:
- true: The application scale-in is disabled.
- false: The application scale-in is enabled.
Note
When this parameter is set to true, the application instances are never reduced. This prevents risks to your business in peak hours. By default, this parameter is set to false.
| false |
| ScaleDownRules | object | Rules that determine the application scale-in. | |
| Step | long | The step size for the scale-in. The maximum number of instances that can be reduced within a specific period of time. | 100 |
| StabilizationWindowSeconds | long | The cooldown time of the scale-in. Valid values: 0 to 3600. Unit: seconds. Default value: 0. | 300 |
| Disabled | boolean | Indicates whether the application scale-in is disabled. Valid values:
- true: disabled.
- false: enabled.
Note
When this parameter is set to true, the application instances are never reduced. This prevents risks to your business in peak hours. By default, this parameter is set to false.
| false |
| ScaleRuleName | string | The name of the auto scaling policy. | test |
| MinReadyInstances | integer | The minimum number of available instances. Valid values:
- If you set the value to 0, business is interrupted when the application is updated.
- If you set this property to -1, the system calculates a recommended value as the minimum number of available instances by using the following formula: Recommended value = Number of existing instances × 25%. The calculation result is rounded up to the nearest integer. For example, if the number of existing instances is 5, the recommended value is calculated by using the following formula: 5 × 25% = 1.25. In this case, the minimum number of available instances is 2.
Note
To ensure business continuity, make sure that at least one instance is available during application deployment and rollback.
| 1 |
| MinReadyInstanceRatio | integer | The ratio of the minimum number of available instances to the current number of instances. Valid values:
- -1 (default value): The minimum number of available instances is not determined based on this parameter.
- 0 to 100: The minimum number of available instances is calculated by using the following formula: Number of existing instances × Value of MinReadyInstanceRatio × 100%. The calculation result is rounded up to the nearest integer. For example, if the number of existing instances is 5 and MinReadyInstanceRatio is set to 50, the minimum number of available instances is 3.
Note
If the MinReadyInstanceRatio and MinReadyInstanceRatio parameters are configured and the MinReadyInstanceRatio parameter is set to a number from 0 to 100, the value of the MinReadyInstanceRatio parameter takes precedence. For example, if the MinReadyInstances parameter is set to 5, and the MinReadyInstanceRatio parameter is set to 50, the minimum number of available instances is set to the nearest integer rounded up from the calculated result of the following formula: Nmber of existing instances × 50.
| -1 |