Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check Memory and CPU usage of AWS Batch job

while creating a batch job, we can provide vCPUs and Memory in Container properties.

In cloudwatch, we can check memory and CPU usage per cluster under Elastic Container Service per cluster.

Is there any way to check memory and CPU usage per job?

like image 254
Dev Avatar asked Feb 28 '19 10:02

Dev


1 Answers

There seems to be nothing which is production grade right now ( August 2019)

However, here some hints:

  • implementing your own solution using gmond / ganglia
  • use AWS containerInsights (enable it for your account via cmd below )

aws ecs put-account-setting-default --name "containerInsights" --value "enabled"

  • check out what Adroll did: http://tech.adroll.com/blog/data/2018/08/08/running-jobs-with-aws-batch.html
like image 180
tweep Avatar answered Oct 12 '22 21:10

tweep