Coder Social home page Coder Social logo

ERU resource to be plugable about core HOT 3 CLOSED

DuodenumL avatar DuodenumL commented on June 14, 2024
ERU resource to be plugable

from core.

Comments (3)

CMGS avatar CMGS commented on June 14, 2024

raw args 你这个不清真啊

from core.

DuodenumL avatar DuodenumL commented on June 14, 2024

raw args 你这个不清真啊

因为如果core真的完全不了解有哪些资源,就没法正确地解析这些参数...

当然rawArgs也可以是map[string][]string的形式,这样稍微清真一些

from core.

DuodenumL avatar DuodenumL commented on June 14, 2024

“资源插件化”在很多场景也可以为eru-core提供更多扩展能力。

SRE可能会有一些affinity相关的需求,例如希望“这一组workload不要部署在已经运行了redis的节点上”,就可以自己去实现一个资源插件(暂时称为“affinity插件”)。在部署时,core会把请求参数传给所有的资源插件,affinity插件会将不符合要求的node的capacity设置为0,这样就不会在这些node上部署了。

类似地,如果想实现“当已经使用的storage大于60%就不再部署新workload”,也可以使用资源插件。这个插件可以用任何方式去获取目标node的storage用量,如果发现用量太大了,在core部署时把node capacity设置为0即可。

from core.

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.