How do you configure an ASG for Spot reliability?
IntermediateProductionCost Optimization
Answer
Mixed instances policy with many instance types (or attribute-based instance type selection: vCPU and memory ranges), multiple AZs, price-capacity-optimized allocation strategy, an On-Demand base capacity for the minimum you must always have, and Capacity Rebalancing enabled so the ASG launches replacements when it receives a rebalance recommendation. The more pools you allow, the fewer interruptions you see.
More on Cost Optimization
Where do you start when asked to cut an AWS bill?BeginnerCompute Savings Plans vs EC2 Instance Savings Plans vs Reserved Instances?IntermediateHow do you size a Savings Plans commitment?AdvancedWhere is Spot a good fit and where is it not?BeginnerHow do you rightsize EC2, RDS and containers?IntermediateWhy move to Graviton and what blocks it?Intermediate