AWS Auto Scaling¶
AWS Auto Scaling, including instance counts, capacity units, warm pools, etc.
Configuration¶
Install Func¶
It is recommended to enable Guance integration - extension - managed Func: all prerequisites are automatically installed. Please continue with the script installation.
If you deploy Func manually, refer to Manual Func Deployment
Installation Script¶
Note: Please prepare an Amazon AK that meets the requirements in advance (for simplicity, you can directly grant global read-only permissions
ReadOnlyAccess
).
Managed Version Activation Script¶
- Log in to the Guance console.
- Click on the 【Integration】 menu and select 【Cloud Account Management】.
- Click 【Add Cloud Account】, select 【AWS】, and fill in the required information on the interface. If the cloud account information has been configured before, skip this step.
- Click 【Test】. After a successful test, click 【Save】. If the test fails, check whether the related configuration information is correct and retest.
- In the 【Cloud Account Management】 list, you can see the added cloud account. Click on the corresponding cloud account to enter the details page.
- Click the 【Integration】 button on the cloud account detail page. Under the
Not Installed
list, findAWS Auto Scaling
, click the 【Install】 button, and install it by following the installation interface.
Manual Activation Script¶
-
Log in to the Func console, click 【Script Market】, enter the official script market, and search:
guance_aws_auto_scaling
-
After clicking 【Install】, input the corresponding parameters: AWS AK ID, AK Secret, and account name.
-
Click 【Deploy Startup Script】, and the system will automatically create a
Startup
script set and configure the corresponding startup scripts automatically. -
After enabling, you can see the corresponding automatic trigger configuration in 「Management / Automatic Trigger Configuration」. Click 【Execute】 to immediately execute once without waiting for the scheduled time. Wait a moment, then you can view the execution task records and corresponding logs.
Verification¶
- In 「Management / Automatic Trigger Configuration」, confirm whether the corresponding tasks have corresponding automatic trigger configurations, and you can also view the corresponding task records and logs to check for any anomalies.
- In Guance, 「Infrastructure / Custom」, check if there is asset information.
- In Guance, 「Metrics」, check if there are corresponding monitoring data.
Metrics¶
After configuring AWS Auto Scaling, the default metric sets are as follows. You can collect more metrics through configuration Details of AWS Cloud Monitoring Metrics
Metric | Description |
---|---|
GroupMinSize |
Minimum size of the Auto Scaling group |
GroupMaxSize |
Maximum size of the Auto Scaling group |
GroupDesiredCapacity |
Number of instances that the Auto Scaling group attempts to maintain |
GroupInServiceInstances |
Number of instances running as part of the Auto Scaling group. This metric does not include instances in pending or terminating states |
GroupPendingInstances |
Number of instances in pending state. Pending instances are not yet available. This metric does not include instances in available or terminating states |
GroupStandbyInstances |
Number of instances in Standby state. Instances in this state are still running but cannot be effectively used |
GroupTerminatingInstances |
Number of instances in the termination process. This metric does not include instances in available or pending states |
GroupTotalInstances |
Total number of instances in the Auto Scaling group. This metric identifies the number of instances in available, pending, and terminating states |
GroupTotalCapacity |
Total number of capacity units in the Auto Scaling group |
GroupPendingCapacity |
Number of pending capacity units |
GroupStandbyCapacity |
Number of capacity units in Standby state |
GroupTerminatingCapacity |
Number of capacity units in the termination process |
GroupTotalCapacity |
Total number of capacity units in the Auto Scaling group |
WarmPoolMinSize |
Minimum size of the warm pool |
GroupAndWarmPoolDesiredCapacity |
Desired capacity combining the Auto Scaling group and warm pool |
WarmPoolPendingCapacity |
Number of pending capacities in the warm pool. This metric does not include instances in running, pending, or terminating states |
WarmPoolTerminatingCapacity |
Number of capacities in the termination process in the warm pool. This metric does not include instances in running, stopped, or pending states |
WarmPoolWarmedCapacity |
Number of capacities entering the Auto Scaling group during horizontal scaling. This metric does not include instances in pending or terminating states |
WarmPoolTotalCapacity |
Total capacity of the warm pool, including instances in running, stopped, pending, or terminating states |
GroupAndWarmPoolDesiredCapacity |
Desired capacity combining the Auto Scaling group and warm pool |
GroupAndWarmPoolTotalCapacity |
Total capacity combining the Auto Scaling group and warm pool. This includes instances in running, stopped, pending, terminating, or in-service states |