Comments (5)
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.
@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.
@spodila, Thanks! Will follow your suggestions and let you know the result.
from fenzo.
@yanglei99 Do you still need this issue open?
from fenzo.
@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)
- contributor agreement. HOT 8
- NamedResourceSetRequest HOT 2
- Resource ranges and "greedy" scheduling HOT 4
- Support v1 Protos (or provide utility to convert) HOT 5
- Support dynamic fitness threshold HOT 3
- Allow for custom shortfall evaluators HOT 4
- Execution failed for task ':fenzo-core:compileJava'.> 无效的源发行版: 1.8 HOT 2
- Update Mesos dependency
- BinPacking with weights HOT 2
- Incorrect handling of reserved resources HOT 2
- Unsafe concurrent access to unknown lease collection in AssignableVMs class
- Pluggable ENI fitness evaluator HOT 1
- After reading Fenzo, I don't understand how to get Framework information on Mesos?
- After reading Fenzo, I don't understand how to get Framework information on Mesos?
- DisableVM does not remember hosts HOT 2
- .travis.yml: The 'sudo' tag is now deprecated in Travis CI
- Dynamic ResAllocs
- CVE-2018-7489 on jackson-databind 2.4.5 HOT 1
- Unused variable
- Unreleased Resource: Streams HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fenzo.