Comments (4)
These are certainly possible with some changes in Fenzo.
I see why approach 2 may be more optimal for you. Although, one aspect you may be giving up from approach 1 is getting a "more optimal" assignment if you were to wait for sometime before lowering the resource requirements. For example, a task requiring 8 CPUs, but, willing to accept just 4 CPUs might get assigned 4 CPUs right away in approach 2. Where as, waiting for, say, a few seconds may have gotten the more optimal assignment of 8 CPUs. Without too many changes, there is, of course, no way to tell if waiting will in fact get you a better assignment.
Also, there could be some challenges from approach 2 in incorporating the multiple task assignments (from permutations) for the same task, where an assignment may have to abort previous assignment for its variant, etc. Your concern on its feasibility is very valid.
There may be another approach here.
Approach 3:
- Define a new task request type in Fenzo, something like VariableSizeQueuableTaskRequest. This task request has a list/array of scalar requests for entities like CPUs, memory, etc.
- Fenzo would then try to satisfy the request starting with the maximum of the requested quantity and iteratively down to the minimum, stopping with the max value it could allocate. The fitness value would be a function of where in the list it was able to assign
- The task assignment result would indicate the actual quantities assigned
This is in some ways a variation of your approach 2 but better supported in Fenzo itself instead of your framework having to create multiple "duplicate" tasks for the same task. It then removes the complexity of having to abort previous assignments, concurrent assignments of same offers, etc.
This would require changes in Fenzo, but, my preliminary thinking is that it can be done in a way such that other Fenzo users not using this feature would be unaffected.
This requires further thought. I haven't considered it in full detail yet. We may have to iterate on the details.
from fenzo.
I appreciate the quick feedback. We don't need to pick a solution for a few weeks so there's time to iterate. I mostly was interested up front in your level of interest and whether or not our approaches were way off! We look forward to more discussions.
from fenzo.
Just following up to see if you had any more insights on this scheduling approach.
My current thought is that my "Approach 2" is too complex, but that I could implement "Approach 1" fairly easily... just to get the capability available in our scheduler.
Then, maybe down the road a bit, if "Approach 3" were to become available in Fenzo, I would just migrate to that.
Any thoughts?
Am I over-simplifying "Approach 1?"
Do you think that "Approach 3" could happen one day in Fenzo?
And one final, related question... I have some interest in poking around the Fenzo codebase. If I could get something working (with appropriate unit tests and documentation, of course) would you be willing to work with me on a pull request?
Thanks again!
from fenzo.
Your "Approach 1" sounds reasonable. This may work well for a lot of cases until the scale and complexity of the use case increases.
It is too early to say when/if Approach 3 will be available in Fenzo. This will need to be driven by folks with the most need for it.
And one final, related question... I have some interest in poking around the Fenzo codebase. If I could get something working (with appropriate unit tests and documentation, of course) would you be willing to work with me on a pull request?
Sure. Are you referring to "Approach 3" or a simpler one?
from fenzo.
Related Issues (20)
- contributor agreement. HOT 8
- NamedResourceSetRequest HOT 2
- 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.