Skip to content

Commit 1c1c27b

Browse files
Reduce VMSS scaling to 5 instances due to quota
Updated autoscaler and CI workflows to scale VMSS to a maximum of 5 instances instead of 6, reflecting the Azure quota limit of 20 cores (4 cores per VM). Adjusted related comments, echo statements, and parallelism settings accordingly.
1 parent d23c68c commit 1c1c27b

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/autoscaler.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,17 @@ jobs:
4040
run: |
4141
QUEUED=${{ steps.queue.outputs.queued_jobs }}
4242
43-
# Each workflow has 10 jobs, scale to 6 runners for parallel execution
44-
# If 1+ workflows: scale to 6 runners
43+
# Each workflow has 10 jobs, scale to 5 runners for parallel execution
44+
# Limited by Azure quota: 20 cores / 4 cores per VM = 5 max VMs
45+
# If 1+ workflows: scale to 5 runners
4546
# If 0 workflows: scale to 0
4647
4748
if [ $QUEUED -eq 0 ]; then
4849
TARGET=0
4950
echo "No active workflows - scaling to 0"
5051
elif [ $QUEUED -ge 1 ]; then
51-
TARGET=6
52-
echo "Active workflows detected - scaling to 6"
52+
TARGET=5
53+
echo "Active workflows detected - scaling to 5"
5354
fi
5455
5556
echo "target_capacity=$TARGET" >> $GITHUB_OUTPUT

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,21 @@ concurrency:
3636

3737
jobs:
3838
scale-up:
39-
name: Scale VMSS to 6 instances
39+
name: Scale VMSS to 5 instances
4040
runs-on: ubuntu-latest
4141
steps:
4242
- name: Azure Login
4343
uses: azure/login@v1
4444
with:
4545
creds: ${{ secrets.VMSS_AZURE_CREDENTIALS }}
4646

47-
- name: Scale VMSS to 6 instances
47+
- name: Scale VMSS to 5 instances
4848
run: |
49-
echo "Scaling VMSS to 6 instances..."
49+
echo "Scaling VMSS to 5 instances (quota limit: 20 cores)..."
5050
az vmss scale \
5151
--name dbatools-runner-vmss \
5252
--resource-group dbatools-ci-runners \
53-
--new-capacity 6
53+
--new-capacity 5
5454
5555
- name: Wait for instances to provision
5656
run: |
@@ -70,7 +70,7 @@ jobs:
7070
7171
strategy:
7272
fail-fast: false
73-
max-parallel: 6 # Maximum 6 concurrent runners
73+
max-parallel: 5 # Maximum 5 concurrent runners (quota limited)
7474

7575
matrix:
7676
include:

0 commit comments

Comments
 (0)