-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autoscaling for repository runner #258
Comments
Hi @int128 - thanks for bringing this up. We can add repo scoped runners to the |
We investigated the autoscaling latency of We will move all workflows to self-hosted runners and try |
What we want
We use several repository runners in our organization and put them into each namespace, for example,
foo-repository-runner
, RunnerDeployment:foo-repository-runner
for repositoryfoo
bar-repository-runner
, RunnerDeployment:bar-repository-runner
for repositorybar
We'd like to autoscale
bar-repository-runner
. We use both GitHub-hosted and self-hosted runner in the repository. Is any autoscaling strategy available for the repository runner?What I did
First I tried
TotalNumberOfQueuedAndInProgressWorkflowRuns
but it scaled out to too many pods, because it counts the workflows for both GitHub-hosted and self-hosted runners.I found
PercentageRunnersBusy
strategy is available as well. I added the following resource:but I got the following error:
PercentageRunnersBusy
seems to find the organization runners (not repository runners):https://github.com/summerwind/actions-runner-controller/blob/48923fec562126e2ffe575c9d7694d18c0a56f3d/controllers/autoscaling.go#L206-L207
I think
PercentageRunnersBusy
is not applicable for the repository runner, right?The text was updated successfully, but these errors were encountered: