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
Based on my thoughts at [1]
* drop SpotPrice param, use OnDemandPercentage instead (with default to
100%)
* drop SpotAllocationStrategy and OnDemandBaseCapacity, use sensible
defaults
* drop InstanceType1, use the existing InstanceType param
* always used a mixed instance ASG, even when only a single instance
type is requested. For simplicity of the template and resulting
resources.
[1] #651 (comment)
Copy file name to clipboardExpand all lines: templates/aws-stack.yml
+31-78Lines changed: 31 additions & 78 deletions
Original file line number
Diff line number
Diff line change
@@ -39,9 +39,11 @@ Metadata:
39
39
- ImageId
40
40
- ImageIdParameter
41
41
- InstanceType
42
+
- InstanceType2
43
+
- InstanceType3
44
+
- InstanceType4
42
45
- AgentsPerInstance
43
46
- KeyName
44
-
- SpotPrice
45
47
- SecretsBucket
46
48
- ArtifactsBucket
47
49
- AuthorizedUsersUrl
@@ -57,13 +59,7 @@ Metadata:
57
59
Parameters:
58
60
- MinSize
59
61
- MaxSize
60
-
- SpotAllocationStrategy
61
-
- OnDemandBaseCapacity
62
-
- OnDemandPercentageAboveBaseCapacity
63
-
- InstanceType1
64
-
- InstanceType2
65
-
- InstanceType3
66
-
- InstanceType4
62
+
- OnDemandPercentage
67
63
- ScaleOutFactor
68
64
- ScaleInIdlePeriod
69
65
- ScaleOutForWaitingJobs
@@ -216,11 +212,6 @@ Parameters:
216
212
Default: t3.large
217
213
MinLength: 1
218
214
219
-
SpotPrice:
220
-
Description: Maximum Spot bid price to use for the instances. 0 allows you to specify mixed instances (a combination of On-Demand and Spot Instances across multiple instances types)
221
-
Type: String
222
-
Default: 0
223
-
224
215
MaxSize:
225
216
Description: Maximum number of instances
226
217
Type: Number
@@ -232,11 +223,6 @@ Parameters:
232
223
Type: Number
233
224
Default: 0
234
225
235
-
InstanceType1:
236
-
Description: The primary instance type to use when requesting mixed instance types.
237
-
Type: String
238
-
Default: ""
239
-
240
226
InstanceType2:
241
227
Description: The secondary instance type to use when requesting mixed instances. Omit this parmameter to only request 1 instance type.
242
228
Type: String
@@ -252,23 +238,12 @@ Parameters:
252
238
Type: String
253
239
Default: ""
254
240
255
-
SpotAllocationStrategy:
256
-
Description: Indicates how to allocate Spot capacity across Spot pools.
257
-
AllowedValues:
258
-
- capacity-optimized
259
-
- lowest-price
260
-
Type: String
261
-
Default: capacity-optimized
262
-
263
-
OnDemandBaseCapacity:
264
-
Description: Minimum number of instances in the ASG's initial capacity that must be fulfilled by On-Demand instances.
265
-
Type: Number
266
-
Default: 0
267
-
268
-
OnDemandPercentageAboveBaseCapacity:
269
-
Description: Percentage of On-Demand Instances for additional capacity beyond the optional On-Demand base amount.
241
+
OnDemandPercentage:
242
+
Description: Percentage of total instances that should launch as OnDemand. Reduce this to use some Spot Instances when they're available.
270
243
Type: Number
271
-
Default: 40
244
+
Default: 100
245
+
MinValue: 0
246
+
MaxValue: 100
272
247
273
248
ScaleOutFactor:
274
249
Description: A decimal factor to apply to scale out changes to speed up or slow down scale-out
0 commit comments