ECS EC2 Manual Retyping

Opportunity Name:

ECS EC2 Manual Retyping

AWS Resource Type:

EC2 instance

Opportunity Description:

The Finder optimizes Amazon ECS clusters by analyzing EC2 instances and capacity providers. Using the CUR query and DescribeContainerInstances API, it targets opportunities at the capacity provider level, affecting the entire Auto Scaling Group (ASG). For ECS clusters with Fargate, it employs AWS Compute Optimizer's recommendations. By assessing average resource usage across ASG instances, the Finder suggests ideal instance types. It avoids switching on-demand instances with Spot instances and calculates cost savings based on on-demand cost reductions.

Criteria for identifying the opportunity:

The criteria for identifying optimization opportunities are:

  • Instance Detection: Use the CUR query combined with the DescribeContainerInstances API to pinpoint EC2 instances that are part of ECS clusters.
  • Capacity Provider Level: Instead of individual instances, focus on the broader capacity provider level to find opportunities, as it governs the configuration for all instances in its associated Auto Scaling Group (ASG).
  • Fargate Task Sizing: For ECS clusters utilizing Fargate, refer to AWS Compute Optimizer's recommendations to ensure tasks are efficiently sized.
  • Resource Utilization Analysis: Assess the average CPU and memory usage across instances within an ASG. This helps in recommending whether memory-optimized or compute-optimized instances would be more suitable.
  • Spot Instance Exclusion: Avoid considering the switch of on-demand instances to Spot instances or the retyping of existing Spot instances as viable opportunities.
  • Cost Savings Estimation: Identify areas where there's potential for cost reduction, focusing on the possible decrease in on-demand costs.

Potential savings (range in % on annual basis):

We estimate cost reduction for retyping based on the % reduction of on-demand costs.

What happens when the Fixer is executed?

The instance type will be changed. The fix will be applied manually, either by the customer or by the Professional Services.

Is it possible to rollback once CloudFix implements the fixer?

Yes, but the rollback will be applied manually, either by the customer or by the Professional Services.

Can CloudFix implement the fix automatically once I accept the recommendation?

No, this is an opportunity with a manual fix.

Does this fix require downtime?

Changing EC2 instance types can require stopping and restarting the instance, potentially causing downtime.

 
Additional Resources:

Comments

0 comments

Article is closed for comments.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request