Tutorials for EC2 Fleet
There are different ways to configure an EC2 Fleet. The configuration you choose depends on your specific use case.
The following tutorials cover some of the possible use cases and provide the tasks required to implement them.
Use case | Link to tutorial |
---|---|
Use instance weighting to manage the availability and performance of your EC2 Fleet. With instance weighting, you assign a weight to each instance type in your EC2 Fleet to represent their compute capacity and performance relative to each other. Based on the weights, the fleet can use any combination of the specified instance types, as long as it can fulfil the desired target capacity. |
Tutorial: Configure EC2 Fleet to use instance weighting |
Use On-Demand capacity to ensure availability during peak periods, but benefit from additional Spot capacity at a lower cost. Configure your EC2 Fleet to use On-Demand Instances as the primary capacity to ensure available capacity during peak periods. In addition, allocate some capacity to Spot Instances to benefit from discounted pricing, while keeping in mind that Spot Instances can be interrupted if Amazon EC2 needs the capacity back. |
Tutorial: Configure EC2 Fleet to use On-Demand Instances as the primary capacity |
Use Capacity Reservations to reserve compute capacity for your On-Demand Instances. Configure your EC2 Fleet to use |
Tutorial: Configure EC2 Fleet to launch On-Demand Instances using targeted Capacity Reservations |
Use Capacity Blocks to reserve highly sought-after GPU instances for your ML workloads. Configure your EC2 Fleet to launch instances into Capacity Blocks. |
Tutorial: Configure your EC2 Fleet to launch instances into Capacity Blocks |