Enum AllocationStrategy
Determines how this compute environment chooses instances to spawn.
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum AllocationStrategy
Syntax (vb)
Public Enum AllocationStrategy
Remarks
ExampleMetadata: infused
Examples
IVpc vpc;
var computeEnv = new ManagedEc2EcsComputeEnvironment(this, "myEc2ComputeEnv", new ManagedEc2EcsComputeEnvironmentProps {
Vpc = vpc,
AllocationStrategy = AllocationStrategy.BEST_FIT
});
Synopsis
Fields
| BEST_FIT | Batch chooses the lowest-cost instance type that fits all the jobs in the queue. |
| BEST_FIT_PROGRESSIVE | This is the default Allocation Strategy if |
| SPOT_CAPACITY_OPTIMIZED | If your workflow tolerates interruptions, you should enable |
| SPOT_PRICE_CAPACITY_OPTIMIZED | The price and capacity optimized allocation strategy looks at both price and capacity to select the Spot Instance pools that are the least likely to be interrupted and have the lowest possible price. |
Fields
| Name | Description |
|---|---|
| BEST_FIT | Batch chooses the lowest-cost instance type that fits all the jobs in the queue. |
| BEST_FIT_PROGRESSIVE | This is the default Allocation Strategy if |
| SPOT_CAPACITY_OPTIMIZED | If your workflow tolerates interruptions, you should enable |
| SPOT_PRICE_CAPACITY_OPTIMIZED | The price and capacity optimized allocation strategy looks at both price and capacity to select the Spot Instance pools that are the least likely to be interrupted and have the lowest possible price. |