Giter Site home page Giter Site logo

Comments (4)

Zzaniu avatar Zzaniu commented on June 8, 2024

WithCPUThreshold?

from aegis.

lixd avatar lixd commented on June 8, 2024

WithCPUThreshold?

类似于 WithCPUQuota 吧,现在是可以获取到真实的CPU使用情况,比如当前使用了25%,但是无法获取实际容器能使用的最大值,比如当前检测到CPU使用了25%,但是实际容器只能使用50%,那么这个25%对容器来说就是50%了。

具体就是通过 cgroup 获取 quota 这段代码,无法获取到真实的 quota,会以 CPU 核数作为 quota ╮(╯▽╰)╭

from aegis.

Zzaniu avatar Zzaniu commented on June 8, 2024

WithCPUThreshold?

类似于 WithCPUQuota 吧,现在是可以获取到真实的CPU使用情况,比如当前使用了25%,但是无法获取实际容器能使用的值,比如当前检测到CPU使用了25%,但是实际容器只能使用50%,那么这个25%整体就是50%了

那你直接使用WithCPUThreshold修改就好了呀

from aegis.

lixd avatar lixd commented on June 8, 2024

WithCPUThreshold?

类似于 WithCPUQuota 吧,现在是可以获取到真实的CPU使用情况,比如当前使用了25%,但是无法获取实际容器能使用的值,比如当前检测到CPU使用了25%,但是实际容器只能使用50%,那么这个25%整体就是50%了

那你直接使用WithCPUThreshold修改就好了呀

诶,好像可以,曲线救国也不是不行,但是总感觉不科学,属于是治标不治本了,还是加个 WithCPUQuota 比较合理。

from aegis.

Related Issues (11)

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.