Reputation: 421
How Is ECSServiceAverageCPUUtilization actually calculated? It is obvious that it gets the average, but what is the actual time duration? Average of last 15 minutes? Less?
Upvotes: 6
Views: 4461
Reputation: 238209
The "Average" in ECSServiceAverageCPUUtilization
does not mean a "time duration". The "Average" in this metric refers to an average of CPUUtilization
overall all tasks in the service.
The details how this is calculated are here:
Service utilization is measured as the percentage of CPU and memory that is used by the Amazon ECS tasks that belong to a service on a cluster when compared to the CPU and memory that is specified in the service's task definition.
The metrics are collected in 1 minute intervals.
The "time duration" has meaning when you define a Target Tracking scaling policy to auto-scale your service.
Upvotes: 8