Skip to content

Commit 10471e2

Browse files
committed
Update autofill OnDemandPercentageAboveBaseCapacity to 1 (#608)
(cherry picked from commit 6b2fa15)
1 parent 62214f0 commit 10471e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/cluster/config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ spot_config:
5252
# minimum number of on demand instances (default: 0)
5353
on_demand_base_capacity: 0
5454

55-
# percentage of on demand instances to use after the on demand base capacity has been met [0, 100] (default: 0)
56-
on_demand_percentage_above_base_capacity: 0
55+
# percentage of on demand instances to use after the on demand base capacity has been met [0, 100] (default: 1)
56+
on_demand_percentage_above_base_capacity: 1
5757

5858
# max price for instances (defaults to the on demand price of the primary instance type)
5959
max_price: 0.096

pkg/lib/clusterconfig/clusterconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ func (cc *ClusterConfig) AutoFillSpot() error {
478478
}
479479

480480
if spotConfig.OnDemandPercentageAboveBaseCapacity == nil {
481-
spotConfig.OnDemandPercentageAboveBaseCapacity = pointer.Int64(0)
481+
spotConfig.OnDemandPercentageAboveBaseCapacity = pointer.Int64(1)
482482
}
483483

484484
if spotConfig.InstancePools == nil {

0 commit comments

Comments
 (0)