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.

To learn more watch the video,

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: Review Creating an IAM Policy with Minimum Permissions for the CloudWatch Data Collection for the IAM Policy permissions required to collect Auto Scaling group data.

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 configuration; see the recommended Current Instance Type column for instance sizing recommendations. The report also displays recommended group sizing associated with downscaling or upscaling the ASG; see the Current Minimum Group Size or the Current 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.

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 auto 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 the Auto Scaling group is in an ECS cluster.

Life Cycle

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

  • normal—The ASG is configured to run with On-Demand instances.
  • spot—The ASG is configured to run with 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 Viewing Cloud Optimization Reports for a description of each recommendation.

Current Instance Type

Based on the data collected, the current catalog instances is listed.

Current Minimum Group Size

The minimum number of instances currently configured in the scale group.

Current Maximum Group Size

The maximum number of instances currently configured in the scale group.

Current RI Coverage (%)

The percentage of current instances in the group covered by a reserve instance (RI) discount. Flexible RIs are taken into consideration when calculating the percentage of RI coverage.

Recommended Instance Type

Based on optimization analysis, the recommended catalog instances is listed.

Recommended Minimum Group Size

The minimum number of instances recommended for the scale group.

Recommended Maximum Group Size

The maximum number of instances recommended for the scale group.

Defer Recommendation Until Current RI Coverage Expires

Defer recommendations until reserved instance coverage for this group expires. Values include:

  • Yes—defer recommendations due to RI coverage;
  • No—do not defer recommendations; this is also the case for "Terminate" recommendations;
  • "-" —not applicable; no change is listed for "Just Right" recommendations.

This field is based on AWS Defer Recommendation settings. Contact your Cloud Advisor or support@Densify.com to review your AWS Defer Recommendation settings.

Current RI Expiry Date

If Defer Recommendation Until Current RI Coverage Expires = "Yes", then the expiry date(s) of the reserved instance subscriptions, which are currently providing coverage for this group of instances, are displayed.

Note: RI expiry dates are not displayed for instance groups with Optimization Type = "Just Right" or "Terminate".

Current Predicted Avg. Instance Count

The average instance count based on metrics collected for the group. The current count is calculated with collected group metrics.

Recommended Predicted Avg. Instance Count

The recommended predicted average instance count is determined by the up-scale or down-scaled recommendation and the collected metrics for the group.

$ Savings/Month

The estimated cost savings per month. The predicted average instance counts and the instance type cost 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.

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. Account

If Overall Status and Optimization Types are the same for the ASGs, then the tertiary sort key is the Account number, in ascending 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 or template, 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.