Why are AWS Batch Jobs stuck in RUNNABLE?

后端 未结 5 1906
你的背包
你的背包 2021-02-05 03:34

I use a computing environment of 0-256 m3.medium on demand instances. My Job definition requires 1 CPU and 3 GB of Ram, which m3.medium has.

What are possible reasons wh

5条回答
  •  不思量自难忘°
    2021-02-05 04:14

    There are other reasons why a Job can get stuck in RUNNABLE:

    • Insufficient permissions for the role associated to the Computed Environment
    • No internet access from the Compute Environment instance. You will need to associate a NAT or Internet Gateway to the Compute Environment subnet.
      • Make sure to check the "Enable auto-assign public IPv4 address" setting on your Compute Environment's subnet. (Pointed out by @thisisbrians in the comments)
    • Problems with your image. You need to use an ECS optimized AMI or make sure you have the ECS container agent working. More info at aws docs
    • You're trying to launch instances for which you account is limited to 0 instances (EC2 console > limits, in the left menu). (Read more on gergely-danyi comment)
    • And as mentioned insufficient resources

    Also, make sure to read the AWS Batch troubleshooting

提交回复
热议问题