Giter Club home page Giter Club logo

Comments (7)

EdSchouten avatar EdSchouten commented on June 7, 2024 2

Yep! One of the things that could help there is that there is already an internal API for extracting stats from the scheduler. We could upgrade that to a separate gRPC API, which may be used by such an autoscaler.

from bb-remote-execution.

cphang99 avatar cphang99 commented on June 7, 2024 1

Also to answer a follow-up question: how could we extend Buildbarn to support this? Two ways I can think of:

  1. Have a method where we can hook into the scheduler, so that you can detect incoming build actions for unsupported worker kinds. A helper process would listen to these events and spawn workers accordingly.

  2. Allow workers to specify which labels in the platform properties are variable. The worker would then be responsible for spawning the containers dynamically.

@EdSchouten This was something that I was thinking of as well. This would be particularly relevant for the use of recc clients for buildbarn, where management of build dependencies into the input root would not be covered by the REAPI client. There is more discussion at https://gitlab.com/celduin/remote-execution/remote-execution/issues/2

Do you think that this would be in-scope for a bb-autoscaler, that would hook into bb-scheduler, maybe with a simple gRPC protocol, that would detect unsupported worker kinds/variable platform properties, and spawn accordingly the right containers? I suspect that it would be also beneficial for the same bb-autoscaler to be configurable so that it could make API calls to AWS/GCP/Azure to be able to spin up new nodes, that would then register with the bb-scheduler.

from bb-remote-execution.

EdSchouten avatar EdSchouten commented on June 7, 2024

So to answer your question: Buildbarn does respect the platform properties, but there is no logic in place (yet) to dynamically spawn workers based on, say, a Docker container image name. This means that you'll need to make sure to spin up workers in advance that have matching platform properties.

from bb-remote-execution.

EdSchouten avatar EdSchouten commented on June 7, 2024

Also to answer a follow-up question: how could we extend Buildbarn to support this? Two ways I can think of:

  1. Have a method where we can hook into the scheduler, so that you can detect incoming build actions for unsupported worker kinds. A helper process would listen to these events and spawn workers accordingly.
  2. Allow workers to specify which labels in the platform properties are variable. The worker would then be responsible for spawning the containers dynamically.

from bb-remote-execution.

EdSchouten avatar EdSchouten commented on June 7, 2024

Also: be sure to visit the HTTP endpoint of bb-scheduler. It provides a simple web UI that shows the state of the scheduler. Workers and operations are grouped by platform queues, which are identified by those platform properties.

from bb-remote-execution.

QuantSuv avatar QuantSuv commented on June 7, 2024

@EdSchouten has this capability been added to bb-autoscaler?

from bb-remote-execution.

EdSchouten avatar EdSchouten commented on June 7, 2024

We now have a BuildQueueState gRPC API that can be used to inspect the scheduler's state. I guess that's already of some use here.

Not much else has been done in this area.

from bb-remote-execution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.