π AWS EC2 Instance is overutilized π’
- Contextual name: π Instance is overutilized π’
- ID:
/ce/ca/aws/ec2/instance-overutilized
- Located in: π AWS EC2
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
COST
PERFORMANCE
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Identify Amazon EC2 instances operating at high utilization levels that may be overburdened and require scaling or resizing to maintain optimal performance. Overutilized instances exhibit average CPU utilization above 80%, frequent CPU spikes above 95%. These criteria help pinpoint instances at risk of impacting workloads due to resource exhaustion.
Rationalβ
Overutilized EC2 instances often struggle to meet workload demands, leading to degraded application performance and potential downtime. Addressing overutilized instances ensures workloads remain responsive and scalable under peak demands. Remediation actions such as vertical or horizontal scaling enable improved performance and align resources with operational requirements, reducing the risk of performance bottlenecks.
Impactβ
Scaling or resizing incurs additional costs. Implementing scaling strategies allows workloads to adapt dynamically to demand changes.
Auditβ
This policy evaluates an EC2 instance based on its 14-day performance metrics.
... see more
Remediationβ
Remediationβ
Right-Size Overutilized Instancesβ
Change the Instance Typeβ
Key Requirementsβ
You can only change the instance type of an EC2 instance if:
- It is an EBS-backed instance.
- Its configuration is compatible with the new instance type.
Steps From Command Lineβ
Stop the EC2 Instance
Before changing the instance type, the instance must be stopped. Use the following command:
aws ec2 stop-instances --instance-ids {{instance-id}}
Replace
{{instance-id}}
with the actual EC2 instance ID.Modify the Instance Type
After stopping the instance, use the command below to change its type:
aws ec2 modify-instance-attribute --instance-id {{instance-id}} --instance-type "{\"Value\": \"{{new-instance-type}}\"}"
Replace
{{new-instance-type}}
with the desired instance type.Migrate to a New Instance Typeβ
If your instance's configuration is incompatible with the new instance type, or if it is an instance store-backed instance, consider these migration steps:
... see more
policy.yamlβ
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags |
---|---|---|---|---|
πΌ Cloudaware Framework β πΌ Resource Right-Sizing | 4 | |||
πΌ Cloudaware Framework β πΌ Workload Efficiency | 6 |