File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed
Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 11name : VMSS Autoscaler
22
33on :
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
1313permissions :
1414 actions : read
Original file line number Diff line number Diff line change @@ -36,21 +36,21 @@ concurrency:
3636
3737jobs :
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 : |
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 :
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ image_resource_group = "dbatools-ci-images"
55image_name = " dbatools-golden-image"
66keyvault_name = " dbatoolsci-runners"
77min_instances = 0
8- max_instances = 3
8+ max_instances = 5
99github_organization = " dataplat"
1010github_repository = " dbatools"
1111vm_sku = " Standard_B4ms"
You can’t perform that action at this time.
0 commit comments