내용으로 건너뛰기

ECS 지표 vs 컨테이너 인사이트 지표 무슨차이인가요?

0

ECS > 클러스터 > 서비스 > 지표를 누르면

  1. ECS 지표
  2. 컨테이너 인사이트 지표 나오는데

여기에서 CPU 최대사용량이 ECS 지표에서는 99퍼 같은시간에 컨테이너 인사이트 지표에서는 33퍼 나오는데

두 지표 차이가 뭔지 모르겠어요

1개 답변
0

안녕하세요.

ECS 메트릭과 컨테이너 인사이트의 CPU 사용률은 계산 방식이 다르기 때문에 수치가 다른 것은 정상입니다.
컨테이너 인사이트의 CPU 사용률 계산 방식은 아래와 같습니다.

  • CpuUtilized * 100 / CpuReserved
    a

따라서 컨테이너 인사이트의 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

전문가

답변함 8달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.