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

Question: Automatically horizontally scale when building #35

Open
donifer opened this issue Dec 27, 2018 · 5 comments
Open

Question: Automatically horizontally scale when building #35

donifer opened this issue Dec 27, 2018 · 5 comments

Comments

@donifer
Copy link

donifer commented Dec 27, 2018

Is this a request for help?: Yes


I'm trying to make my agents horizontally scale when all agents are busy. Lets say capping it at 10 workers and looks somewhat like this:

No pipelines triggered (agents => 1)
Incoming Work triggers pipelines
Agent_1 gets assigned and starts building
Automatically create Agent_2
Agent_2 gets assigned some work
Automatically create Agent_3
Agent_3 waits for job
Agent_1 finishes (gets killed)
Agent_2 finished (gets killed)
Remaining agents (1): Agent_3
@rimusz
Copy link
Collaborator

rimusz commented Jan 3, 2019

it is not supported by buildkite agent yet.
Custom metrics need be involved there.

@nhooyr
Copy link

nhooyr commented Feb 7, 2019

https://github.com/buildkite/elastic-ci-stack-for-aws already has this if you want it now

@nhooyr
Copy link

nhooyr commented Feb 7, 2019

The metrics are collected via: https://github.com/buildkite/buildkite-agent-metrics

@rimusz
Copy link
Collaborator

rimusz commented Feb 8, 2019

I see Prometheus metrics are supported, which are cloud agnostic, which is good.
Need to find time to play with it, at least somebody else can chip in with the help

@echoboomer
Copy link

@rimusz I realize this issue is old, but I opened this PR today to work on this: #80

As for whether or not is practical or useful, I'll leave it up to the team. Thanks!

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

No branches or pull requests

4 participants