Giter Club home page Giter Club logo

Comments (3)

Devatoria avatar Devatoria commented on May 30, 2024 1

Hi Nikos, sorry for the late reply, we didn't link this issue in the related PR but the feature is now available (for a few versions actually).

from chaos-controller.

Devatoria avatar Devatoria commented on May 30, 2024

Hi Nikos, we have such a thing in our backlog with no ETA at the moment though we didn't plan to support a specific percentage, more a number of cores (that could be specified as a percentage per say but that would be rounded depending on the number of cores). A concrete example would be that specifying something like

spec:
  cpuPressure:
    pct: 40%

would result in using half of the cores at 100% (so in reality 50%). The reason is that it we can easily eat all allocated cores (and we can also easily decide how many cores we want to allocate to the injector process) but we can't easily precisely compute a percentage of CPU usage within the injector itself.

Another spec format could be:

spec:
  cpuPressure:
    cores: 2

But then it is less dynamic depending on the target since we have a fix number of cores.

Would it fit your needs or did you think about using a specific percentage of CPUs?

from chaos-controller.

nikos912000 avatar nikos912000 commented on May 30, 2024

Thanks Joris.

Got it, it gets tricky due to its implementation.

I think a percentage would be more user-friendly, but if it is not deterministic it may confuse the users.

Do you know how tools like stress-ng achieve that? It seems to support number of workers (cores) and load (percentage).

from chaos-controller.

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.