如何检查 AWS Batch 作业的内存和 CPU 使用率

dev*_*v ツ 6 amazon-web-services amazon-cloudwatch aws-batch

在创建批处理作业时,我们可以在容器属性中提供vCPU内存

在 cloudwatch 中,我们可以在每个集群的Elastic Container Service下检查每个集群的内存和 CPU 使用情况。

有没有办法检查每个作业的内存和 CPU 使用率?

小智 2

现在似乎没有什么是生产级的(2019 年 8 月)

不过,这里有一些提示:

  • 使用 gmond / ganglia 实施您自己的解决方案
  • 使用 AWS containerInsights(通过下面的 cmd 为您的帐户启用它)

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

  • containerInsights 对您有用吗?[文档页面](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights.html)显示“目前,AWS Batch 不支持 Container Insights”。 (2认同)