2 Answers
- Newest
- Most votes
- Most comments
4
How about this as workaround:
- Manually Set vCPUs – Try setting Min vCPUs to a non-zero value to prevent automatic scaling to zero.
- Test in Another Region – If possible, deploy a test environment in eu-west-1 or us-east-1 to see if the issue persists.
1
Hi, thank you for using Batch!
All jobs remain RUNNABLE indefinitely because no instances can launch.
I recommend configuring notifications on blocked job queues (https://aws.amazon.com/blogs/hpc/introducing-new-alerts-to-help-users-detect-and-react-to-blocked-job-queues-in-aws-batch/). You will find out exactly the reason instances cannot launch.
UpdateComputeEnvironment with desiredvCpus=4
If your goal is to persist compute, you should use min vCpu instead of the desired vCpu (https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html). Batch will scale down compute if it is incompatible for incoming jobs to save customer costs. Desired vCpu dropping to 0 is expected in your case.
Relevant content
- asked 5 years ago
- AWS OFFICIALUpdated 8 months ago
