Last updated：2021-05-21 17:42:57
Metrics are time series data about the performance of your system. Auto Scaling uses the cloud platform monitoring capability to retrieve metric data. You can determine whether your system runs as expected based on these metrics. If the metrics exceed thresholds, Auto Scaling executes scale-out or scale-in activities.
Auto Scaling supports the following metrics:
Each metric supports the following dimensions:
Auto Scaling monitors KEC instances in a scaling group, and collects metric data from these KEC instances in each cycle. Auto Scaling aggregates the metric data and triggers scaling activities based on your policies.
Basically, Auto Scaling collects the value of the specified metric from each KEC instance every 1 minute in each cycle. If the obtained values meet the specified condition in multiple consecutive cycles, Auto Scaling triggers a scaling activity. The number of consecutive cycles can be customized.
A scaling group contains three KEC instances. An alarm-triggered policy is defined as follows: A scaling activity is triggered if the maximum, minimum, or average value of CPU usage exceeds 50% in a cycle, which is set to 5 minutes, and this occurs in three consecutive cycles.
Auto Scaling collects metric data, checks whether the data meets the condition specified in the alarm-triggered policy, and takes actions accordingly. The procedure is as follows:
Auto Scaling collects the CPU usage of each KEC instance every 1 minute. In a cycle, which is set to 5 minutes, 15 CPU usage values are collected.
Auto Scaling checks whether the maximum, minimum, or average value among the 15 values meets the specified condition.
Maximum value: If the maximum value among the 15 values exceeds 50%, the condition is met in this cycle.
Minimum value: If the minimum value among the 15 values exceeds 50%, the condition is met in this cycle.
Average value: If the average value among the 15 values exceeds 50%, the condition is met in this cycle.
If the condition is met in three consecutive cycles, which are 15 minutes, Auto Scaling triggers a scaling activity.
Did you find the above information helpful?
Please give us your feedback.
Thank you for your feedback.