Help us improve the AWS re:Post Knowledge Center by sharing your feedback in a brief survey. Your input can influence how we create and update our content to better support your AWS journey.
Amazon CloudWatch를 사용하여 ECS 서비스 수준 지표를 추적할 수 있습니다. 자세한 리소스 사용량 정보를 보려면 Container Insights 또는 [향상된 관찰 기능을 갖춘 Container Insights를 켜고 CPU 사용률 및 메모리 사용량 지표](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-metrics-ECS.html)를 확인하십시오.
stats avg(MemoryUtilized) by bin (30m) as period, TaskDefinitionFamily, TaskDefinitionRevision
| filter Type = "Task" | sort period desc, TaskDefinitionFamily | limit 10
애플리케이션을 위한 최적의 리소스 할당을 결정하려면 도구를 사용하여 테스트를 수행합니다. 그런 다음, 결과를 기반으로 작업 정의 및 서비스 구성을 업데이트합니다. 사용 패턴에 따라 작업 정의에서 CPU 및 메모리 용량을 수정합니다. Application Auto Scaling을 사용하여 변화하는 워크로드를 효율적으로 관리합니다.
인스턴스 용량 확인
컨테이너 인스턴스에 작업에 필요한 리소스가 충분한지 확인하십시오. 용량 공급자를 사용하여 클러스터 용량을 자동으로 조정합니다.
CloudWatch 경보 설정
CPU 사용률, 메모리 사용량, 애플리케이션 오류율 등의 지표에 대한 경보를 생성합니다. 임계값을 초과할 때 경보를 보내도록 알림을 구성하십시오.