Skip to content

Commit 9fc2006

Browse files
committed
Add OnDemandBaseCapacity parameter
1 parent ff48e8f commit 9fc2006

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
@@ -464,6 +465,12 @@ Parameters:
464465
Type: String
465466
Default: "10s"
466467

468+
OnDemandBaseCapacity:
469+
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.
470+
Type: Number
471+
Default: 0
472+
MinValue: 0
473+
467474
OnDemandPercentage:
468475
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.
469476
Type: Number
@@ -1696,6 +1703,7 @@ Resources:
16961703
VPCZoneIdentifier: !If [ "CreateVpcResources", [ !Ref Subnet0, !Ref Subnet1 ], !Ref Subnets ]
16971704
MixedInstancesPolicy:
16981705
InstancesDistribution:
1706+
OnDemandBaseCapacity: !Ref OnDemandBaseCapacity
16991707
OnDemandPercentageAboveBaseCapacity: !Ref OnDemandPercentage
17001708
SpotAllocationStrategy: !Ref SpotAllocationStrategy
17011709
LaunchTemplate:

0 commit comments

Comments
 (0)