ComputeEnvironmentOrder
The order that compute environments are tried in for job placement within a queue. Compute
environments are tried in ascending order. For example, if two compute environments are
associated with a job queue, the compute environment with a lower order integer value is tried
for job placement first. If two or more compute environments are associated with a job queue,
a later compute environment is scaled up when the preceding ones have reached their
maxvCpus, or when the runnable jobs at the front of the job queue cannot be
satisfied by any instance types available in the preceding compute environments.
Compute environments must be in the VALID state before you
can associate them with a job queue. All of the compute environments must be either EC2
(EC2 or SPOT) or Fargate (FARGATE or
FARGATE_SPOT); Amazon EC2 and Fargate compute environments can't be mixed.
Note
All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
Contents
- computeEnvironment
-
The Amazon Resource Name (ARN) of the compute environment.
Type: String
Required: Yes
- order
-
The order of the compute environment. Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower
orderinteger value is tried for job placement first.Type: Integer
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: