- 최신
- 최다 투표
- 가장 많은 댓글
안녕하세요.
ECS 메트릭과 컨테이너 인사이트의 CPU 사용률은 계산 방식이 다르기 때문에 수치가 다른 것은 정상입니다.
컨테이너 인사이트의 CPU 사용률 계산 방식은 아래와 같습니다.
- CpuUtilized * 100 / CpuReserved
따라서 컨테이너 인사이트의 CPU 사용률은 CpuUtilized에 따라 값이 결정됩니다.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-enhanced-observability-metrics-ECS.html
ECS 서비스의 메트릭은 아래 문서에 기재된 계산 방법에 따라 산출됩니다.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service_utilization.html
Amazon ECS collects metrics every 20 seconds. Each minute, the Amazon ECS container agent calculates the number of CPU units and MiB of memory that are currently being used for each running task owned by the service. This information is reported back to Amazon ECS. The total amount of CPU and memory used for all tasks owned by the service that are running on the cluster is calculated, and those numbers are reported to CloudWatch as a percentage of the total resources that are specified for the service in the service's task definition. The minimum and maximum values are the smallest and largest of the 20 second metrics. The average is the aggregate of the 3 values.
ECS 서비스 메트릭의 사용 사례는 아래 문서에 기재되어 있습니다.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service_utilization-metrics-explanation.html
관련 콘텐츠
질문됨 10달 전
