Skip to content
Closed
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
6 changes: 6 additions & 0 deletions templates/aws-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ Parameters:
Type: Number
Default: 0

MaxInstanceLifetime:
Description: The maximum amount of time (in seconds) that an instance can be in service. The maximum duration applies to all current and future instances in the group. As an instance approaches its maximum duration, it is terminated and replaced, and cannot be used again.
Type: Number
Default: 0

OnDemandPercentage:
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.
Type: Number
Expand Down Expand Up @@ -1032,6 +1037,7 @@ Resources:
- !Ref "AWS::NoValue"
MinSize: !Ref MinSize
MaxSize: !Ref MaxSize
MaxInstanceLifetime: !Ref MaxInstanceLifetime
Cooldown: 60
MetricsCollection:
- Granularity: 1Minute
Expand Down