Spot instances
# cluster.yaml
# whether to use spot instances in the cluster (default: false)
spot: false
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: 3
# fallback to on-demand instances if spot instances were unable to be allocated (default: true)
on_demand_backup: trueExample spot configuration
Only spot instances with backup
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