가장 좋은 플릿 방법은 무엇일까?

가장 좋은 플릿 방법은 무엇일까? (Which is the best fleet method to use?)

일반적인 모범 사례로, Spot과 On-Demand 인스턴스의 플릿을 Amazon EC2 Auto Scaling으로 시작하는 것을 권장해요. Auto Scaling은 플릿을 관리하는 데 사용할 수 있는 추가 기능을 제공하니까요. 추가 기능 목록에는 Spot과 On-Demand 인스턴스 모두에 대한 자동 상태 검사 교체, 애플리케이션 기반 상태 검사, 애플리케이션 트래픽을 정상 인스턴스에 고르게 분산하는 Elastic Load Balancing 통합이 포함돼요. Amazon ECS, Amazon EKS(자체 관리 노드 그룹), Amazon VPC Lattice 같은 AWS 서비스를 사용할 때도 Auto Scaling 그룹을 사용할 수 있어요. 자세한 내용은 Amazon EC2 Auto Scaling User Guide를 참고하세요.

출처: 문서

본문

Amazon EC2 Auto Scaling을 사용할 수 없다면 EC2 Fleet이나 Spot Fleet을 고려할 수 있어요. EC2 Fleet과 Spot Fleet은 같은 핵심 기능을 제공해요. 하지만 EC2 Fleet은 명령줄에서만 사용할 수 있고 콘솔 지원을 제공하지 않아요. Spot Fleet은 콘솔 지원을 제공하지만, 계획된 투자가 없는 레거시 API를 사용해요.

다음 표를 사용해 어떤 플릿 방법을 사용할지 결정해요.

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 uses 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.

더 알아보기 (Learn more)