Skip to content

Commit 2657e47

Browse files
author
Lachlan Donald
committed
Update template for v1.0.0 of buildkite-agent-scaler
1 parent 98cf417 commit 2657e47

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

templates/aws-stack.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ Metadata:
5656
- MinSize
5757
- MaxSize
5858
- ScaleOutFactor
59-
- ScaleInFactor
6059
- ScaleInIdlePeriod
60+
- ScaleOutForWaitingJobs
6161
- InstanceCreationTimeout
6262

6363
- Label:
@@ -224,16 +224,19 @@ Parameters:
224224
Type: Number
225225
Default: 1.0
226226

227-
ScaleInFactor:
228-
Description: A decimal factor to apply to scale in changes to speed up or slow down scale-out
229-
Type: Number
230-
Default: 1.0
231-
232227
ScaleInIdlePeriod:
233228
Description: Number of seconds an agent must be idle before terminating
234229
Type: Number
235230
Default: 600
236231

232+
ScaleOutForWaitingJobs:
233+
Type: String
234+
Description: Whether to scale-out for steps behind wait steps. Make sure you have a long enough idle period!
235+
AllowedValues:
236+
- "true"
237+
- "false"
238+
Default: "false"
239+
237240
InstanceCreationTimeout:
238241
Description: Timeout period for Autoscaling Group Creation Policy
239242
Type: String
@@ -910,7 +913,7 @@ Resources:
910913
Properties:
911914
Code:
912915
S3Bucket: { 'Fn::FindInMap': [LambdaBucket, !Ref 'AWS::Region', 'Bucket'] }
913-
S3Key: "buildkite-agent-scaler/v0.4.1/handler.zip"
916+
S3Key: "buildkite-agent-scaler/v1.0.0/handler.zip"
914917
Role: !GetAtt AutoscalingLambdaExecutionRole.Arn
915918
Timeout: 120
916919
Handler: handler
@@ -926,6 +929,8 @@ Resources:
926929
ASG_NAME: !Ref AgentAutoScaleGroup
927930
MIN_SIZE: !Ref MinSize
928931
MAX_SIZE: !Ref MaxSize
932+
SCALE_OUT_FACTOR: !Ref ScaleOutFactor
933+
INCLUDE_WAITING: !Ref ScaleOutForWaitingJobs
929934
LAMBDA_TIMEOUT: "50s"
930935
LAMBDA_INTERVAL: "10s"
931936

0 commit comments

Comments
 (0)