A company runs a memory-bound Java application on a fleet of Amazon EC2 m6i.xlarge instances. A SysOps Administrator notices that AWS Compute Optimizer recommendations for these instances only display utilization data for CPU, network, and disk, while memory utilization is listed as 'Unavailable'. Consequently, the tool recommends down-sizing the instances to c6i.xlarge based on low CPU utilization, which would lead to application failures due to insufficient memory. What should the administrator do to enable AWS Compute Optimizer to analyze memory utilization and provide accurate right-sizing recommendations?
- AConfigure AWS Cost Anomaly Detection to monitor EC2 cost anomalies, which automatically exposes historical memory metrics to AWS Compute Optimizer.
- Install and configure the Unified CloudWatch Agent on the EC2 instances to publish memory utilization metrics to Amazon CloudWatch.Cevap
- CEnable detailed monitoring in Amazon CloudWatch for the EC2 instances to increase metric granularity to 1-minute intervals.
- DDefine cost allocation tags for the EC2 instances and activate them in the AWS Billing Console to permit memory metadata ingestion.
Cevap
Install and configure the Unified CloudWatch Agent on the EC2 instances to publish memory utilization metrics to Amazon CloudWatch.
The correct action is to install and configure the Unified CloudWatch Agent on the EC2 instances. Memory utilization is an operating system-level metric that is not collected by the hypervisor by default. By running the Unified CloudWatch Agent and sending memory metrics to Amazon CloudWatch, AWS Compute Optimizer can automatically ingest this data. This enables Compute Optimizer to make right-sizing recommendations that respect memory requirements, preventing out-of-memory errors on memory-bound workloads.
Adım Adım Çözüm
Anahtar Kavram
AWS Compute Optimizer requires the Unified CloudWatch Agent to analyze EC2 memory utilization for right-sizing recommendations.
Tahmini Süre:2m 0s