autoscale test
This commit is contained in:
parent
0a6a82ee38
commit
ee14e26723
3 changed files with 33 additions and 13 deletions
19
.github/workflows/test-autoscaling.yml
vendored
Normal file
19
.github/workflows/test-autoscaling.yml
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
name: Test Autoscaling
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
load-test:
|
||||
runs-on: self-hosted # matches ARC runners
|
||||
strategy:
|
||||
matrix:
|
||||
job_id: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
- name: Print job info
|
||||
run: echo "Running job ${{ matrix.job_id }}"
|
||||
|
||||
- name: Simulate work load
|
||||
run: sleep 60
|
||||
14
github_runner/install/autoscale.yaml
Normal file
14
github_runner/install/autoscale.yaml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
apiVersion: actions.summerwind.dev/v1alpha1
|
||||
kind: HorizontalRunnerAutoscaler
|
||||
metadata:
|
||||
name: mealcraft-org-autoscaler
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
name: mealcraft-org-runners
|
||||
minReplicas: 1
|
||||
maxReplicas: 20 # adjust based on your server size
|
||||
metrics:
|
||||
- type: TotalNumberOfQueuedAndInProgressWorkflowRuns
|
||||
# This applies to ALL MealCraft repos
|
||||
repositoryNames:
|
||||
- "MealCraft/*"
|
||||
|
|
@ -12,16 +12,3 @@ spec:
|
|||
- mealcraft-org
|
||||
- arc
|
||||
- microk8s
|
||||
# apiVersion: actions.summerwind.dev/v1alpha1
|
||||
# kind: HorizontalRunnerAutoscaler
|
||||
# metadata:
|
||||
# name: mealcraft-org-autoscaler
|
||||
# spec:
|
||||
# scaleTargetRef:
|
||||
# name: mealcraft-org-runners
|
||||
# minReplicas: 1
|
||||
# maxReplicas: 20 # adjust based on your server size
|
||||
# metrics:
|
||||
# - type: TotalNumberOfQueuedAndInProgressWorkflowRuns
|
||||
# # This applies to ALL MealCraft repos
|
||||
# organization: MealCraft
|
||||
Loading…
Add table
Reference in a new issue