You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the next major release (v6?) we'd like to remove the SpotPrice
parameter - customers can use the OnDemandPercentage parameter to opt
into using spot instances with a price cap equal to the OnDemand price.
However, in the 5.x series we don't want breaking changes like removing
a param. This commit restores SpotPrice and keeps the same semantics:
* if it's set to 0 then we use OnDemandPercentage to decide if spot
instances are used. OnDemandPercentage defaults to 100%, so stacks
with a SpotPrice of 0 will continue to have 100% OnDeman instances
when they upgrade
* if it's set to >0 then we ignore OnDemandPercentage and force the
stack to be 100% spot.
When we're prepping for the v6 release we can remove the SpotPrice
parameter and use only the OnDemandPercentage parameter to decide if
spot instances are used.
I've also expands the SpotPrice parameter description. Partly to clarify
how it has always worked, partly to indicate it's deprecated.
Copy file name to clipboardExpand all lines: templates/aws-stack.yml
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ Metadata:
41
41
- InstanceType
42
42
- AgentsPerInstance
43
43
- KeyName
44
+
- SpotPrice
44
45
- SecretsBucket
45
46
- ArtifactsBucket
46
47
- AuthorizedUsersUrl
@@ -211,6 +212,11 @@ Parameters:
211
212
AllowedPattern: "^[\\w\\.]+(,[\\w\\.]*){0,3}$"
212
213
ConstraintDescription: "must contain 1-4 instance types separated by commas. No space before/after the comma."
213
214
215
+
SpotPrice:
216
+
Description: Maximum spot price to use for the instances, in instance cost per hour. Values >0 will result in 100% of instances being spot. 0 means only use normal (non-spot) instances. This parameter is deprecated - we recommend setting to 0 and using OnDemandPercentage to opt into spot instances.
0 commit comments