Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS batch - how to limit number of concurrent jobs

I am looking for a way to limit the number of batch jobs that are running by holding the remaining jobs in the queue. Is it possible with aws batch?

like image 407
manji369 Avatar asked Jul 11 '18 00:07

manji369


People also ask

How many concurrent batch jobs can run at any point of time?

I observe that a maximum of 2 jobs can run concurrently at any point in time.

Is AWS batch scalable?

AWS Batch will scale up instances appropriate for your jobs based on the required accelerators and isolate the accelerators according to each job's needs, so only the appropriate containers can access them.

Which AWS service allows you to run hundreds of thousands of batch workloads?

AWS Batch lets developers, scientists, and engineers efficiently run hundreds of thousands of batch and ML computing jobs while optimizing compute resources, so you can focus on analyzing results and solving problems.

Is AWS batch parallel?

An AWS Batch multi-node parallel job is compatible with any framework that supports IP-based, internode communication. Examples include Apache MXNet, TensorFlow, Caffe2, or Message Passing Interface (MPI). Multi-node parallel jobs are submitted as a single job.


1 Answers

Limiting the maximum number of vcpus of the managed compute environment the queue is tied to will effectively limit the number of batch jobs running concurrently on that queue.

However, this comes with the caveat that, if you have other queues sharing this compute environment, they would also be limited accordingly. Moreover, if you have multiple compute environments associated with that queue you are attempting to limit, Batch will eventually begin scheduling jobs on the secondary compute environments if there are enough jobs waiting in the RUNNABLE state.

like image 108
Luke Waite Avatar answered Oct 18 '22 09:10

Luke Waite