Giter Club home page Giter Club logo

Comments (5)

pires avatar pires commented on May 28, 2024

Here's the possible formats for Pod CPU resource requests and limits:

  • an integer value, such as 2
  • a fraction, such as 0.1
  • an integer value in millis, such as 500m

All formats can be present in the same Pod spec and are directly translatable to milliseconds, which is supported by CPUQuotaPeriodSec, eg:

  • 2 == 2.0 == 2000m
  • 0.1 == 100m

Do you see any limitation of just going w/ that attribute?

from systemk.

miekg avatar miekg commented on May 28, 2024

from systemk.

pires avatar pires commented on May 28, 2024

Actually, I got it wrong when it comes to systemd primitives. CPUQuota is the field to use and it supports percentage alone. The conversion should be trivial, though.

Now, this only covers resource limits and not requests.

from systemk.

miekg avatar miekg commented on May 28, 2024

from systemk.

pires avatar pires commented on May 28, 2024

One problem I see is that it seems that enabling accounting for one slice means parent and child slices are affected too which may not be desirable.

from systemk.

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.