Keep gpu_4_queue at 10 minimum with demand scaling to 40 - #471
Draft
khluu wants to merge 3 commits into
Draft
Conversation
khluu
force-pushed
the
codex/pin-gpu-4-queue-20
branch
from
August 13, 2026 22:42
d74ea96 to
ea90602
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
gpu_4_queueatMinSize = 10withMaxSize = 40BuildkiteTerminateInstanceAfterJobso scarceg6.12xlargecapacity is retained between jobsBehavior
Why
AWS was returning
InsufficientInstanceCapacityforg6.12xlargeacross all fourus-west-2availability zones. Recycling each instance after one job lost capacity that could not reliably be reacquired. The upstream v6.21.0 template also forces a second ASG for parameter changes, which cannot converge while existing scarce capacity remains allocated.The patched template keeps the existing physical ASG and prevents the baseline capacity from disappearing, while still allowing demand-based scale-out when more agents are needed.
Validation
terraform validategit diff --checkAgentAutoScaleGroupasModifywithReplacement: FalseandMaxSizerequiring no recreationAutoscalingnested stackbk-gpu-4-queue-ci-AgentAutoScaleGroup-OEQAPNeflt32UPDATE_COMPLETEwithMinSize=10,MaxSize=40, andBuildkiteTerminateInstanceAfterJob=falserate(1 minute)and its first polls capped desired capacity at the ten-instance minimum0 to add, 1 to change, 0 to destroy; the remaining in-place change is the known template URL state drift