Skip to content

Commit 68b755d

Browse files
authored
Merge pull request #1552 from buildkite/feat/add-on-demand-base-capacity-param
2 parents da61a51 + 7b084ad commit 68b755d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

templates/aws-stack.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ Metadata:
113113
- MinSize
114114
- MaxSize
115115
- InstanceBuffer
116+
- OnDemandBaseCapacity
116117
- OnDemandPercentage
117118
- SpotAllocationStrategy
118119
- ScaleOutFactor
@@ -473,6 +474,12 @@ Parameters:
473474
Type: String
474475
Default: "10s"
475476

477+
OnDemandBaseCapacity:
478+
Description: Specify how much On-Demand capacity the Auto Scaling group should have for its base portion before scaling by percentages. The maximum group size will be increased (but not decreased) to this value.
479+
Type: Number
480+
Default: 0
481+
MinValue: 0
482+
476483
OnDemandPercentage:
477484
Description: Percentage of total instances that should launch as OnDemand. Default is 100% OnDemand - reduce this to use some Spot Instances when they're available and cheaper than the OnDemand price. A value of 70 means 70% OnDemand and 30% Spot Instances.
478485
Type: Number
@@ -1707,6 +1714,7 @@ Resources:
17071714
VPCZoneIdentifier: !If [ "CreateVpcResources", [ !Ref Subnet0, !Ref Subnet1 ], !Ref Subnets ]
17081715
MixedInstancesPolicy:
17091716
InstancesDistribution:
1717+
OnDemandBaseCapacity: !Ref OnDemandBaseCapacity
17101718
OnDemandPercentageAboveBaseCapacity: !Ref OnDemandPercentage
17111719
SpotAllocationStrategy: !Ref SpotAllocationStrategy
17121720
LaunchTemplate:

0 commit comments

Comments
 (0)