Coder Social home page Coder Social logo

depsolver concurrency limitations about chef-server HOT 5 OPEN

chef avatar chef commented on May 29, 2024
depsolver concurrency limitations

from chef-server.

Comments (5)

sdelano avatar sdelano commented on May 29, 2024

You've summarized the issue correctly. This bottleneck was introduced when we switched back from the pure erlang implementation of the dependency solver feature to using the Ruby/Gecode-based solver that shipped with Chef 10. The Chef Server keeps a pool of depsolver processes running and waiting for requests. When this pool is exhausted, the API returns 503, for Service Unavailable. It is not recommended that this pool size exceed the number of CPUs that you have on your Chef Server, as this is a compute-constrained resource.

Chef 12 ships with a new version of the pooler library (the library that handles said pooling) that now allows for requests to the pool to queue up when no workers are available. This hasn't yet been exposed in Chef 12 for the dependency solver, but it wouldn't take a lot of work to add that ability.

from chef-server.

sdelano avatar sdelano commented on May 29, 2024

Coming back to this issue again, the conclusion still stands that we should add queuing to the depsolver workers. I'll add the accepted-minor tag to this card, indicating that we should do this and that it's a minor issue.

We should also include upgrading to the newest dep_selector gem if we haven't done so already. @danielsdeleo made some great improvements there to optimize the Ruby portion of the code so that it doesn't have to do as much work building up redundant objects.

from chef-server.

heaven avatar heaven commented on May 29, 2024

Hi, why is it a minor issue? We have 25 nodes and they all constantly fail to run chef-client.

from chef-server.

matthiasr avatar matthiasr commented on May 29, 2024

You can work around it by raising the number of dependency solvers. The
default is very conservative.

On Mon, Jul 11, 2016, 17:24 Alexander S. [email protected] wrote:

Hi, why is it a minor issue? We have 25 nodes and they all constantly fail
to run chef-client.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#36 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAICBonIjLU9HVIuzBwzuZBqnIUDbpylks5qUm4igaJpZM4DEOqD
.

from chef-server.

heaven avatar heaven commented on May 29, 2024

Yeah, thank you, looking into that now.

from chef-server.

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.