Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/cluster/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ spot_config:
# 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: 0)
on_demand_percentage_above_base_capacity: 0
# percentage of on demand instances to use after the on demand base capacity has been met [0, 100] (default: 1)
on_demand_percentage_above_base_capacity: 1

# max price for instances (defaults to the on demand price of the primary instance type)
max_price: 0.096
Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/clusterconfig/clusterconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ func (cc *ClusterConfig) AutoFillSpot() error {
}

if spotConfig.OnDemandPercentageAboveBaseCapacity == nil {
spotConfig.OnDemandPercentageAboveBaseCapacity = pointer.Int64(0)
spotConfig.OnDemandPercentageAboveBaseCapacity = pointer.Int64(1)
}

if spotConfig.InstancePools == nil {
Expand Down