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

Option to hibernate agents after a timeout #1348

Open
gondalez opened this issue Jul 26, 2024 · 1 comment
Open

Option to hibernate agents after a timeout #1348

gondalez opened this issue Jul 26, 2024 · 1 comment

Comments

@gondalez
Copy link

Is your feature request related to a problem? Please describe.

Background

Using warm/always-on agents is great for improving build times for disk-cache heavy operations like fetching and building dependencies.

Warm agents are those with autoscaling disabled that are always on so their disk cache is maintained between builds.

Problem

Having the agents always on adds cost.

Describe the solution you'd like

Use ec2 hibernation.

I imagine a variable like ScaleInIdlePeriod where the instances in the group hibernate after an idle period.

For warm agents this seems great because the disk cache is maintained while dropping the instance cost.
Only the storage costs would be accumulating during hibernation

Also, coming out of hibernation should be quick for when a new build starts.

@wolfeidau
Copy link
Contributor

@gondalez would be great to see how this would work with autoscaling, we would be open to looking at an implementation in a PR of some sort but it does seem fairly specialised.

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

2 participants