RunnerSet: Automatic-recovery from registration timeout and deregistration on pod termination (#652)

Ref #629
Ref #613
Ref #612
This commit is contained in:
Yusuke Kuoka
2021-06-24 20:39:37 +09:00
committed by GitHub
parent 98da4c2adb
commit acb906164b
6 changed files with 465 additions and 8 deletions

View File

@@ -16,6 +16,8 @@ spec:
# RunnerSet doesn't support scale from/to zero yet
minReplicas: 1
maxReplicas: 5
# This should be less than 600(seconds, the default) for faster testing
scaleDownDelaySecondsAfterScaleOut: 60
metrics:
- type: PercentageRunnersBusy
scaleUpThreshold: '0.75'

View File

@@ -14,6 +14,10 @@ spec:
serviceName: example-runnerset
#replicas: 1
# From my limited testing, `ephemeral: true` is more reliable.
# Seomtimes, updating already deployed runners from `ephemeral: false` to `ephemeral: true` seems to
# result in queued jobs hanging forever.
ephemeral: false
repository: ${TEST_REPO}