By using Tencent Cloud Cloud Monitoring, you can retrieve statistical data based on an ordered set of time series data (called metrics). You can use these metrics to verify whether your system is running as expected. If the thresholds are reached, scaling will be triggered.
AS currently supports the following metrics:
Each metric supports the following values:
Tencent Cloud Auto Scaling monitors CVM clusters, and collects multiple monitoring metrics for multiple CVMs across multiple time periods. This data is aggregated and used to inform operations based on the policies that you configure.
It collects one sample per minute for each of CVM based on the set monitoring items. If the sample value meets the configured rules for multiple periods consecutively (the number of periods can be customized), the alarm scaling activity will be triggered.
For example: A scaling group has 5 CVM instances and the defined alarm scaling policy is “Maximum/minimum/average CPU utilization of more than 50% within a 5 minutes period for 3 times consecutively.” Auto Scaling collects the data and determines whether the policy for the alarm scaling rule is met. The steps are as follows:
Step 1: Collects one value from each CVM per minute. In one sampling period (the current period is 5 minutes) it takes 25 CPU utilization values.
Step 2: According to the configured maximum/minimum/average values, it determines whether the policy for the alarm scaling rule is met.
Step 3: If the rule is met for 3 consecutive periods (a total of 15 minutes, with each 5-minute period considered the current period), the scaling action is triggered.