Skip to content
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

On demand runner #57

Open
sverhoeven opened this issue Jun 19, 2020 · 4 comments
Open

On demand runner #57

sverhoeven opened this issue Jun 19, 2020 · 4 comments

Comments

@sverhoeven
Copy link
Collaborator

sverhoeven commented Jun 19, 2020

At the moment the runner service must be kept online so it can accept jobs (GitHub Action workflow jobs). This requires a server to be running, doing nothing most of time, except when a job needs to be run. This is very wasteful.

We should have a setup that will start up a server (and runner) only when a job needs to be run and shutdown the server when no jobs need to run.

@sverhoeven
Copy link
Collaborator Author

For example https://040code.github.io/2020/05/25/scaling-selfhosted-action-runners uses AWS lambda functions.

@HannoSpreeuw
Copy link
Collaborator

image

But it is mostly offline, by default, right? I mean, after being active for CI, it only remains idle for a couple of minutes. So why wasteful?

Running something like ubuntu-virtualbox/playbook-set-up-runner.yml will turn its state from offline to idle. That can be run by default before any CI task.

@sverhoeven
Copy link
Collaborator Author

The packer-Ubuntu-18 is really offline.

When you start the runner it keeps polling to GitHub server indefinitely see https://help.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github

@sverhoeven
Copy link
Collaborator Author

Started in https://github.com/ci-for-science/on-demand-runner on a function to spin up/down servers. with runners on demand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants