-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unable to get AutoScaling work #726
Comments
@vikas027 Hey! I have a few points to understand your issue:
|
Hey @mumoshu , Thanks for the response. I have explained (and added few questions) as well :)
I am using ambassador ingress controller and mapped
Oh, I was missing this. I had selected the default,
I did review the history, it was all green with an HTTP 200 response.
Sorry, I did not get this completely. Does this mean that the actions runner controller will poll for the GitHub Actions queue every 10 minutes and start a runner if there are unallocated jobs? Suppose there are 5 outstanding jobs, will it run 5 more runners? |
Nope. The server doesn't have
Either should work.
Okay. Now, try checking it once again after you checked the
Yes. It's more involved if we looked into the implementation detail, but I believe you got it 99% correct. So again, make it The webhook-based autoscale should scale more quickly. But webhook-based autoscale is difficult to configure correctly if you have a lot of runner label combinations and runner groups to scale. It will be more complete and easy after #721 (and corresponding GitHub feature releases). |
Thanks for all the help @mumoshu . Everything is working fine now :) . I was mainly missing two things, an extra I have one last question regarding the GitHub APP API limits. I am just trying to figure out how these limits work, so I can fine tune the As per the server-to-server requests in the official documentation is
Why would GitHub make an API call per user and per repository? The API calls should come from the GitHub Webhook Server to my Kubernetes cluster, and maybe then on the repository only while running the jobs, isn't it? I don't understand why it needs to make an API call to every user and every repository. |
@vikas027 Glad to hear it worked for you :)
I believe you're misreading the GitHub doc here, if I'm correct. The doc seems to be saying that it will allow you 50 additional API calls per user above 20 users. |
Yeah, could be :| . Anyways, I will close the issue. Thanks again for helping me out. |
Describe the bug
I am new to the controller and have set up the hosted runners with custom images and IRSA on my EKS account, all works fine so far :). But I am not sure if I understanding how autoscaling works or probably have not set it up correctly.
I have created a
HorizontalRunnerAutoscaler
and pushed a few commits to a git repository to make sure a few jobs are queued. I was expecting the HRA to trigger autoscaling but it didn't work. Not sure what I missing here :(Checks
To Reproduce
As per the documentation:
githubWebhookServer
in the helm chartRunnerDeployment
(without replicas) and aHorizontalRunnerAutoscaler
with a replica countactions-runner-controller-github-webhook-server
externally https://github-runner-webhook.<my_domain>Expected behaviour
I was expecting that controller will watch the jobs queue in the repository and scale-up automatically.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: