Working with Auto Scaling Groups

Working with Auto Scaling Groups

#380460

The Auto Scaling Groups (ASG) tab displays optimization opportunities for Amazon Auto Scaling groups discovered through cloud data collection. Optimization opportunities include group sizing and instance type recommendations based on predictive workload analytics. EC2 instances belonging to an Auto Scaling group are logically treated as part of the ASG service entity and recommendations are made for the group and not the individual instances.

The ASG optimization opportunity report is divided into two sections: a tabular report pane at the top listing details of the ASGs and their recommendations and a bottom pane displaying the selected ASG's predicted scaling activity, resource utilization details, and effort required to implement the recommendations.

Note: Auto Scaling groups configured with maximum group size = 1, are only included in the EC2 optimization opportunity report; ASGs configured with maximum group size > 1, are included in the Auto Scaling Groups optimization opportunity report.

The tabular report displays the current and recommended instance sizing and cost details for each ASG associated with downsizing, upsizing, or modernizing the instance type in the ASG's launch configuration; see the recommended Catalog Instance column for instance sizing recommendations. The report also displays recommended group sizing associated with downscaling or upscaling the ASG; see the Minimum Group Size or the Maximum Group Size columns for the recommended group size. Refer to Reviewing the ASG Optimization Opportunity Report Columns for a description of ASG tabular report columns.

Note: Collected Auto Scaling groups created from launch templates are not included in Densify analyses and will therefore have no recommendations.

The bottom pane of the ASG report provides the following information for the selected ASG in the tabular report:

  • Predicted Scaling Activity—Includes charts for current and recommended predicted scaling activities for the selected ASG. For Just Right or Terminate recommendation (optimization type), only the current in-service ASG scaling activity chart is displayed.
  • Resource Utilization Metrics: ASG—Includes charts for current and recommended CPU Utilization, Memory Utilization for the selected ASG. Also included are Network I/O, Disk I/O workload charts, showing utilization at the ASG level. For ASGs belonging to ECS clusters, additional CPU and Memory Reservation charts are displayed. You can view workload charts for each group member from the ASG In Service Instance Details page.
  • Effort Details Tab—Lists the factors that contribute to the effort required to investigate and implement the Densify recommendations. Effort for each group is calculated by rule-driven analytics based on factors (such as instance family change, data quality checks, feature changes, etc.) that can be configured in the policy settings and through analysis rule sets. A description of each rule and its impact on the effort to implement the recommended changes are provided.

Note: You must enable Auto Scaling Group Metrics Collection in AWS for Densify to collect scaling activity and resource utilization for the group. By enabling Auto Scaling Group Metrics monitoring the quality of recommendations are improved.

Reviewing the ASG Optimization Opportunity Report Columns

Table: ASG Optimization Opportunity Report Columns

Column Name

Description

Account

The AWS linked account containing the Auto Scaling group.

Region

The region containing the Auto Scaling group.

Auto Scaling Group

The AWS EC2 Auto Scaling group name, discovered from data collection.

The Auto Scaling group name is a hyperlink that takes you to the Impact Analysis and Recommendations report, from which you can review group-specific details. See Viewing the Impact Analysis and Recommendation Report.

ECS Cluster

The ECS cluster associated with the Auto Scaling group.

Note: This column is visible if there are ECS clusters for any Auto Scaling group.

Life Cycle

This is the instance purchasing option configured for the Auto Scaling group.

  • Normal—The ASG is configured to run on-demand instances.
  • Spot—The ASG is configured to run Spot instances.

Overall Status

Identifies the overall status of the optimization results based on Optimization Type and potential $ Savings/Month:

Optimal

These instance types are currently optimal. The Optimization type is just right and there are no costs savings for this group.

Identified Risk

These instance types are at risk. This status occurs when the savings amount is less than $0 (i.e. you need to spend money to mitigate risk).

Identified Risk status is also indicated when the savings amount is $0, but optimization type is upscale, upsize, or upsize to optimal family. This situation occurs when services are inactive, however, they will need to be upscaled or upsized to mitigate risk when they resume activity.

Savings Opportunity

These instance types can provide saving opportunities that greater than $0.

Savings opportunity status is also indicated when the savings amount is $0, but optimization type is terminate, modernize, modernize to optimal family, downscale, downsize, or downsize to optimal family. This situation occurs when services are inactive, but have a recommendation of terminate, modernize, downsize or downscale when they resume activity to save money.

Optimization Type

The recommended action for the group of instances. See Optimization Type Color-Coding Summary for a description of each recommendation.

Catalog Instance

Based on the audits and recommendation analysis, the current and recommended catalog instances are listed.

Minimum Group Size

  • Current—The minimum number of instances currently configured in the ASG.
  • Recommended—The minimum number of instances recommended in the ASG.

Maximum Group Size

  • Current—The maximum number of instances currently configured in the ASG.
  • Recommended—The maximum number of instances recommended in the ASG.

Per Instance Cost ($)

The cost of each instance belonging to the ASG.

  • Current—The per instance, per month cost corresponding to the listed current Catalog Instance type for on-demand usage.
  • Recommended—The recommended per instance, per month cost corresponding to the listed recommended Catalog Instance type for on-demand usage.

Predicted Avg. Instance Count

The average instance count based on metrics collected for the group.

  • Current—The current count is calculated based on the collected group metrics.
  • Recommended—Is the up or down-scaled from the current average instance count based on the recommended Optimization Type.

$ Savings/Month

The estimated cost savings per month. The Predicted Avg. Instance Count and the Per Instance Cost ($) values are used to calculate the current and recommended estimated cost (i.e. estimated cost = per instance cost * predicted average instance count). The savings are calculated as the current estimated cost minus the recommended estimated cost.

In Service Instance

The number of instances currently running in the ASG is determined from the last audit. This value is the number of instances at the time of the audit and is not representative of the entire day.

The number listed in this column is a hyperlink that takes you to the ASG In Service Instance Details page for the selected ASG.

Effort

[High|Medium|Low|None]

This column describes the effort required to investigate and implement the Densify recommendations. The displayed group effort is an average of all the calculated efforts for each instance (or service) in the group. Effort for each instance is calculated by rule-driven analytics based on factors (such as family change, storage change, data quality checks, feature changes, etc.) that can be configured in the policy settings and rule set which captures best practices.

See the Effort Details tab in the lower pane for additional effort details for the selected ASG.

RI Impact

[Favorable|Neutral|Unfavorable|-]

The impact on existing AWS Reserved Instances (RI) based on the implementation of the recommendations for the group of optimization instance types.

RI impact in the optimization opportunity reports is the mode of the aggregated RI impact value for each of the individual instances in the group (i.e. it is the RI impact value that appears most often in the instance group). See Understanding the Instance Optimization Details Report for details of individual instance RI Impact.

If there is a tie (i.e. there are the same number of favorable, neutral or unfavorable values), then the RI impact that is displayed is the better outcome, which is in this order:

  1. Favorable
  2. Neutral
  3. Unfavorable

Filtering by Recommendation

You can filter the ASG optimization report based on recommendations using the Recommendation Filter Menu. This filter allows you to narrow the results of your report based on overall status, recommended optimization type, effort required, monetary impact, and service characteristics. The resulting filtered report can be exported for external analysis using the Export to Excel () icon.

For details, see Using the Recommendation Filter Menu.

ASG Tabular Report Sorting

The ASG tabular report is ordered based on the following sorting keys:

Table: ASG Sort Key Priority

Sort Key

Description

1. Overall Status

The Auto scaling groups are first sorted by Overall Status, in the following order:

  1. Savings Opportunity
  2. Optimal
  3. Identified Risk

2. Optimization Type

If the Overall Status is the same, then the secondary sort key is Optimization Type. ASGs are sorted by Optimization Type in the following order:

  1. Terminate
  2. Modernize
  3. Modernize - Optimal Family
  4. Downscale
  5. Downsize
  6. Downsize - Optimal Family
  7. Just Right
  8. Upscale
  9. Upsize
  10. Upsize - Optimal Family

3. In Service Instance count

If Overall Status and Optimization Types are the same for the ASGs, then the tertiary sort key is the In Service Instance count, in descending order.

4. Auto Scaling Group name

If all of the above sort keys are the same, then the final sorting is done by the Auto Scaling group name, in ascending, alphabetical order.

ASG In Service Instance Details

The ASG In Service Instance Details page is divided into two sections:

  • The top pane contains a tabular report listing details of each in-service EC2 instance created from a launch template or configuration associated with the specific Auto Scaling group. The running EC2 instances displayed for the Auto Scaling group are a snapshot from the last audit.
  • The bottom pane contains the EC2 resource utilization metrics for the in-service instance, as selected from the top of the page. The tab includes charts for CPU Utilization, Memory Utilization, Network I/O, Disk I/O).
  • Note: If no metrics are available, then the corresponding chart is not displayed.

    These workload charts show hourly min/max and sustained activity for the selected system. Use the left/right arrows to scroll though the various workload charts.

To go back to the parent ASG optimization opportunity report, use the Go Back () tool from the top-right toolbar. Do not use the browser Back button for navigation within Densify.

If ASG metrics collection has not been enabled, the number of in-service instances is determined from the sample count value for any valid ASG EC2 metric such as %CPU utilization. For example, if we know that each instance is sampled 5 times within the sample interval (5 min), then if there are 10 samples, we know that there are 2 instances. If there are 50 samples then there are 10 instances, and so on. This in-service count is then loaded into the ASG In-Service Instances workload type.

Exporting the ASG Optimization Opportunity Report

When you use the Export to Excel () feature from the Auto Scaling Group dashboard, a Microsoft® Excel formatted file is exported with the following sheet for further analysis:

  • AutoScalingGroupsSummary—This report contains the tabular list of ASGs which corresponds to the Auto Scaling Group optimization opportunity tabular list view.

From the drill-down ASG In Service Instance Details report, click the Export to Excel () icon at the top-right corner tol export a file in Microsoft® Excel format, with the following sheet:

  • AsgServiceInstance—This report contains the launch configuration, instance type, minimum/maximum group size and a list of the in-service instances which correspond to the selected ASG In Service Instance Details report.