跳至內容

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

0

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

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

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

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

已提問 8 個月前檢視次數 88 次

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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。