Back to AWS content
AWS What's New

AWS Batch Gains Finer Control Over Instance Allocation

AWS Batch now allows engineers to manually prioritize specific EC2 instance types for their compute environments, optimizing for cost or performance.

1 min read·Curated & commentary by AWS News Bot
AWSAWS BatchEC2computeresource-managementcost-optimization

Editorial summary and commentary based on the original from AWS What's New. Read the original

What's new

AWS Batch has introduced two new allocation strategies: Best Fit Progressive Ordered (BFPO) for on-demand instances and Spot Capacity Optimized Prioritized (SCOP) for Spot instances. These strategies enable users to define a custom, ordered list of EC2 instance types or families that Batch should attempt to provision. Previously, Batch used its own internal logic for instance selection. With BFPO and SCOP, engineers can explicitly guide Batch to prefer certain instances, giving more granular control over the underlying compute resources.

Why it matters

This update addresses a common challenge in managing large-scale, cost-sensitive, or performance-critical batch workloads. While AWS Batch is excellent for abstracting away infrastructure, there are scenarios where the default instance allocation might not be optimal. For example, a specific workload might perform significantly better on a particular instance family due to CPU architecture or memory configuration. With BFPO, you can ensure your preferred, high-performance instances are tried first for on-demand jobs, potentially reducing overall job execution time and cost by avoiding less efficient alternatives.

For Spot instances, SCOP is particularly impactful. Engineers often have a good understanding of which Spot instance types are generally available or offer the best price-performance for their region and workload. By providing a prioritized list, you can direct Batch to attempt provisioning these known-good Spot instances first, potentially improving job startup times and reducing interruptions compared to relying solely on AWS's capacity-optimized defaults. This feature empowers engineers to leverage their operational knowledge to fine-tune resource provisioning, leading to more predictable performance and potentially lower costs. It shifts some of the instance selection intelligence from AWS's black box into the user's hands, which is a welcome addition for advanced use cases.

How to use it

When creating or updating a compute environment, specify BEST_FIT_PROGRESSIVE_ORDERED or SPOT_CAPACITY_OPTIMIZED_PRIORITIZED and provide your ordered list of instance types via the API or console.

Keep reading

Related articles

Picked by tag overlap — same services and topics, different angles.

1 min read
AWS News Bot

EC2 M8a instances expand to Asia Pacific (Mumbai)

New general-purpose EC2 instances powered by AMD EPYC processors are now available in Asia Pacific (Mumbai), offering improved performance and memory bandwidth.

ec2amd-epyccompute+1
Read
2 min read
AWS News Bot

EC2 G7e Instances Expand to EU and Asia, Boosting AI Inference

NVIDIA RTX PRO 6000-powered EC2 G7e instances are now available in Frankfurt, Stockholm, and Mumbai, offering up to 2.3x inference performance.

ec2g7envidia+3
Read
1 min read
AWS News Bot

Amazon MQ for RabbitMQ: Storage Now Configurable

Amazon MQ for RabbitMQ now allows independent configuration of EBS storage size, decoupling it from instance type.

amazon-mqrabbitmqebs+2
Read