From 38e0d3e22cf21fa9758e808c4a65e936f569d516 Mon Sep 17 00:00:00 2001 From: Alex Martani Date: Thu, 27 Jul 2023 13:18:01 -0700 Subject: [PATCH] Add ScalerMinPollInterval param --- templates/aws-stack.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/aws-stack.yml b/templates/aws-stack.yml index e6555f45b..7b2b1b2a4 100644 --- a/templates/aws-stack.yml +++ b/templates/aws-stack.yml @@ -98,6 +98,7 @@ Metadata: - ScaleOutForWaitingJobs - InstanceCreationTimeout - ScalerEventScheduleRate + - ScalerMinPollInterval - Label: default: Cost Allocation Configuration @@ -303,6 +304,11 @@ Parameters: Description: How often the event schedule for buildkite-agent-scaler is triggered (in minutes) Type: String Default: "1" + + ScalerMinPollInterval: + Description: Minimum interval at which the auto scaler should poll the AWS API + Type: String + Default: "10s" 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. @@ -1381,3 +1387,4 @@ Resources: ScaleOutFactor: !Ref ScaleOutFactor ScaleOutForWaitingJobs: !Ref ScaleOutForWaitingJobs EventScheduleRate: !Ref ScalerEventScheduleRate + MinPollInterval: !Ref ScalerMinPollInterval