Which is the best fleet method to use? - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Which is the best fleet method to use?

EC2 Fleet and Spot Fleet offer the same core functionality. However, EC2 Fleet is only available using a command line and does not provide console support. Spot Fleet provides console support, but is based on a legacy API with no planned investment. Therefore, if you plan to use a command line, use EC2 Fleet. If you need to use a console, use Spot Fleet.

Tip

As a general best practice, we recommend rather launching fleets of Spot and On-Demand Instances with Amazon EC2 Auto Scaling because it provides additional features you can use to manage your fleet. The list of additional features includes automatic health check replacements for both Spot and On-Demand Instances, application-based health checks, and an integration with Elastic Load Balancing to ensure an even distribution of application traffic to your healthy instances. You can also use Auto Scaling groups when you use Amazon services such as Amazon ECS, Amazon EKS (self-managed node groups), and Amazon VPC Lattice. For more information, see the Amazon EC2 Auto Scaling User Guide.

Use the following table to determine which fleet method to use.

Fleet method When to use? Use case

Amazon EC2 Auto Scaling

  • You need multiple instances with either a single configuration or a mixed configuration.

  • You want to automate the lifecycle management of your instances.

Create an Auto Scaling group that manages the lifecycle of your instances while maintaining the desired number of instances. Supports horizontal scaling (adding more instances) between specified minimum and maximum limits.

EC2 Fleet

  • You need multiple instances with either a single configuration or a mixed configuration.

  • You want to self-manage your instance lifecycle.

  • If you don’t need auto scaling, we recommend that you use an instant type EC2 Fleet.

Create an instant fleet of both On-Demand Instances and Spot Instances in a single operation, with multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet. The Spot Instance allocation strategy defaults to lowest-price per unit, but we recommend changing it to price-capacity-optimized.

Spot Fleet

  • We strongly discourage using Spot Fleet because it is based on a legacy API with no planned investment.

  • If you want to manage your instance lifecycle, rather use EC2 Fleet.

  • If you don't want to manage your instance lifecycle, rather use an Auto Scaling group.

Use Spot Fleet only if you need console support for a use case for when you would use EC2 Fleet.