37 lines
942 B
YAML
37 lines
942 B
YAML
apiVersion: actions.summerwind.dev/v1alpha1
|
|
kind: HorizontalRunnerAutoscaler
|
|
metadata:
|
|
name: org
|
|
spec:
|
|
scaleTargetRef:
|
|
name: org-runnerdeploy
|
|
scaleUpTriggers:
|
|
- githubEvent:
|
|
checkRun:
|
|
types: ["created"]
|
|
status: "queued"
|
|
amount: 1
|
|
duration: "1m"
|
|
scheduledOverrides:
|
|
- startTime: "2021-05-11T16:05:00+09:00"
|
|
endTime: "2021-05-11T16:40:00+09:00"
|
|
minReplicas: 2
|
|
- startTime: "2021-05-01T00:00:00+09:00"
|
|
endTime: "2021-05-03T00:00:00+09:00"
|
|
recurrenceRule:
|
|
frequency: Weekly
|
|
untilTime: "2022-05-01T00:00:00+09:00"
|
|
minReplicas: 0
|
|
minReplicas: 0
|
|
maxReplicas: 5
|
|
# Used to test that HRA is working for org runners
|
|
metrics:
|
|
- type: PercentageRunnersBusy
|
|
scaleUpThreshold: '0.75'
|
|
scaleDownThreshold: '0.3'
|
|
scaleUpFactor: '2'
|
|
scaleDownFactor: '0.5'
|
|
- type: TotalNumberOfQueuedAndInProgressWorkflowRuns
|
|
repositoryNames:
|
|
- ${TEST_ORG_REPO}
|