Spot instances
# cluster.yaml
node_groups:
- name: node-group-1
# whether to use spot instances for this node group (default: false)
spot: false # this must be set to true to use spot instances
spot_config:
# additional instance types with identical or better specs than the primary cluster instance type (defaults to only the primary instance type)
instance_distribution: # [similar_instance_type_1, similar_instance_type_2]
# minimum number of on demand instances (default: 0)
on_demand_base_capacity: 0
# percentage of on demand instances to use after the on demand base capacity has been met [0, 100] (default: 50)
# note: setting this to 0 may hinder cluster scale-up when spot instances are not available
on_demand_percentage_above_base_capacity: 0
# max price for spot instances (default: the on-demand price of the primary instance type)
max_price: # <float>
# number of spot instance pools across which to allocate spot instances [1, 20] (default: number of instances in instance distribution)
instance_pools: 3Example spot configuration
Only spot instances
3 on-demand base capacity with 0% on-demand above base capacity
0 on-demand base capacity with 50% on-demand above base capacity
Last updated