我使用 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 中还有其他原因:
您需要关联 NAT或 Internet Gateway到计算环境子网。
在您的计算环境的子网上。 (@thisisbrians 在评论中指出)
您需要使用 ECS 优化的 AMI 或确保 ECS 容器代理正常工作。更多信息请访问 aws docs
另外,请务必阅读 AWS Batch troubleshooting
关于amazon-web-services - 为什么 AWS Batch 作业卡在 RUNNABLE 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48151332/