GithubHelp home page GithubHelp logo

Comments (5)

spodila avatar spodila commented on July 18, 2024

Nice work. Glad to note Fenzo was useful for your framework.

Did you use the TaskScheduler.Builder.withDelayAutoscaleUpBySecs(secs) to make the scale up less aggressive? We introduced that for very similar reasons. You should not need to introduce the new delay you are referring to after the last offer expiration. The JavaDocs for that builder method has additional explanation on why and what to set the delay to. I realized the JavaDocs links weren't updated to the latest ones, I will do that shortly. You can see the java docs in the code here.

I notice in your code that you introduced a similar delay to scale down outside Fenzo. You can use TaskScheduler.Builder.withDelayAutoscaleDownBySecs(secs) for that. When Fenzo gives a call back for scale down, it disables those hosts internally before the call back, for a time equivalent to the configured cool down seconds for the AutoScale rule. If you further delay the scale down, the hosts for which Fenzo called the scale down action will not be used until the cooldown period expires. So effectively, you have fewer servers to assign resources from.

I suggest you use the built in auto scale delay feature.

Also, since you are using the auto scaling feature, it would be useful for you to use bin packing as the fitness calculator (e.g., BinPackingFitnessCalculators.cpuMemNetworkBinPacker) when building the scheduler.

Let me know if you find these don't work for you. My understanding is that they should.

from fenzo.

spodila avatar spodila commented on July 18, 2024

@yanglei99 The java docs are now updated. You can see the scale up delay doc here.

Let me know if you need any further info.

from fenzo.

yanglei99 avatar yanglei99 commented on July 18, 2024

@spodila, Thanks! Will follow your suggestions and let you know the result.

from fenzo.

spodila avatar spodila commented on July 18, 2024

@yanglei99 Do you still need this issue open?

from fenzo.

spodila avatar spodila commented on July 18, 2024

@yanglei99 I am going to close this issue since there doesn't seem to be an open question after the last discussion. Do open a new one if you have a follow up. Thank you.

from fenzo.

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.