amazon-web-services - 为什么 AWS Batch 作业卡在 RUNNABLE 中?

标签 amazon-web-services aws-batch aws-ecs

我使用 0-256 m3.medium on demand 实例的计算环境。我的 Job 定义需要 1 个 CPU 和 3 GB 的 Ram,这是 m3.medium 所拥有的。

AWS Batch 作业卡在状态 RUNNABLE 的可能原因有哪些? ?

AWS说:
A job that resides in the queue, has no outstanding dependencies, and is therefore ready to be scheduled to a host. Jobs in this state are started as soon as sufficient resources are available in one of the compute environments that are mapped to the job’s queue. However, jobs can remain in this state indefinitely when sufficient resources are unavailable.
但这并不能回答我的问题

最佳答案

Job 卡在 RUNNABLE 中还有其他原因:

  • 与计算环境关联的角色权限不足
  • 计算环境实例无法访问 Internet。
    您需要关联 NATInternet Gateway到计算环境子网。
  • 确保选中“启用自动分配公共(public) IPv4 地址”设置
    在您的计算环境的子网上。 (@thisisbrians 在评论中指出)
  • 你的形象有问题。
    您需要使用 ECS 优化的 AMI 或确保 ECS 容器代理正常工作。更多信息请访问 aws docs
  • 您正在尝试启动您的帐户被限制为 0 个实例的实例(EC2 控制台 > 限制,在左侧菜单中)。 (在 gergely-danyi comment 上阅读更多信息)
  • 如前所述,资源不足

  • 另外,请务必阅读 AWS Batch troubleshooting

    关于amazon-web-services - 为什么 AWS Batch 作业卡在 RUNNABLE 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48151332/

    相关文章:

    docker - dockerized logstash正在生成巨大的日志文件

    amazon-web-services - 错误无法设置本地主机。这会阻止创建 GUID。在AWS lambda java代码中使用Ehcache时

    amazon-web-services - AWS Batch 成功后终止 EC2 实例

    aws-lambda - 如何配置AWS lambda执行角色以便能够列出批处理作业?

    c++ - aws 批处理上的非法指令

    amazon-web-services - 如何在 AWS Batch 上使用 docker compose?

    amazon - 我们可以使用自定义 AMI 来创建 ECS 集群吗?

    amazon-web-services - 使用AWS CloudWatch Insights按字段值聚合日志并绘制为多个系列的图

    amazon-web-services - 如何在 AWS 洞察力上可视化按多个维度聚合的时间序列数据?

    amazon-web-services - 如何使用 AWS CDK 将元数据添加到 IAM 策略?