Skip to content

Commit 4a22372

Browse files
Temporarily reduce VMSS scaling for troubleshooting
Disabled autoscaler workflow triggers and set VMSS scaling to 1 instance in ci.yml for troubleshooting. Increased max_instances in variables.tfvars to 5 to allow for future scaling adjustments.
1 parent 1c1c27b commit 4a22372

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.github/workflows/autoscaler.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: VMSS Autoscaler
22

33
on:
4-
schedule:
5-
# Every 2 minutes - fast response, low cost
6-
- cron: '*/2 * * * *'
4+
# DISABLED FOR TROUBLESHOOTING - ci.yml handles scaling manually
5+
# schedule:
6+
# # Every 2 minutes - fast response, low cost
7+
# - cron: '*/2 * * * *'
78
workflow_dispatch:
8-
# Trigger on workflow run events for faster scaling
9-
workflow_run:
10-
workflows: ["CI Tests"]
11-
types: [requested, completed]
9+
# workflow_run:
10+
# workflows: ["CI Tests"]
11+
# types: [requested, completed]
1212

1313
permissions:
1414
actions: read

.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 5 instances
39+
name: Scale VMSS to 1 instance
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 5 instances
47+
- name: Scale VMSS to 1 instance
4848
run: |
49-
echo "Scaling VMSS to 5 instances (quota limit: 20 cores)..."
49+
echo "Scaling VMSS to 1 instance (troubleshooting mode)..."
5050
az vmss scale \
5151
--name dbatools-runner-vmss \
5252
--resource-group dbatools-ci-runners \
53-
--new-capacity 5
53+
--new-capacity 1
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: 5 # Maximum 5 concurrent runners (quota limited)
73+
max-parallel: 1 # Troubleshooting with 1 runner
7474

7575
matrix:
7676
include:

gh-runners/variables.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ image_resource_group = "dbatools-ci-images"
55
image_name = "dbatools-golden-image"
66
keyvault_name = "dbatoolsci-runners"
77
min_instances = 0
8-
max_instances = 3
8+
max_instances = 5
99
github_organization = "dataplat"
1010
github_repository = "dbatools"
1111
vm_sku = "Standard_B4ms"

0 commit comments

Comments
 (0)