Comments (2)
With fair tree, all of the comparisons are between banks that are at the same level, so sum(child_shares) does not need to be constrained by parent_shares. We do have a common use case where we explicitly make sum(child_shares) >> parent_shares. When an LDRD or other grant period ends, we'll often take all of the banks from that grant period and put them under an 'expired' parent bank with 1 share as a way to gently transition the old projects off, but still allow them to run if the new projects take a bit of time to get spun up.
I don't recall if there was such a constraint with the fair share algorithm that we used prior to fairtree, but it could probably be worked around by normalizing in the fair share calculations if necessary.
from flux-accounting.
This tells me we need a clear definition of the concept of "share" before going into the design of fairness algorithms.
It seems "share" in the context of fair tree algorithm is defined in relative terms -- relative to the share of the parent. But It may not be so for fair share or other fairness calculation algorithms. So what's valid can only be determined by the fairness plugin? Depending on what fairness algorithm we will instantiate, we expect different properties with respect to how one should interpret a "share".
Since it feels like the entered "share" can only be checked and validated at the fairness calculation logic, the subcommand like "add-bank" and "edit" should call into the fairness plugin to do this validation.
Since we don't have the fairness plugin, it appears there isn't so much we can do here yet. We should pin this and circle back to do "fairness plugin-assisted validation" once we have a test plugin.
The current PR should do minimal validation if any, though.
from flux-accounting.
Related Issues (20)
- testsuite: fix tests that look at job state HOT 1
- support bank and project updates HOT 1
- `view-bank`: `-t` option does show hierarchy for a sub bank with users in it
- per-queue user limits HOT 2
- plugin: create external `bank_info` class HOT 1
- all pending jobs killed after Flux update HOT 5
- plugin: create new `Association` class
- plugin: improve callback for `job.validate` HOT 1
- error in flux account view-job-records HOT 2
- `plugin.query`: abstract helper functions that create JSON objects of flux-accounting data HOT 1
- `job.new`: use new external functions for user/bank lookups
- plugin: support bypassing limits
- `job.update`/`job.update...queue`: use new external methods for association lookup
- `job.state.priority`: use new external function for association lookup, general function improvement
- plugin: move accounting-specific helper functions to `accounting.cpp`
- plugin: send max nodes information per-association
- plugin: create estimation of node count helper function
- docs: move flux-accounting guide to this repo HOT 1
- create script for crontab tasks HOT 3
- flux account commands hang while fairshare is being updated 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 flux-accounting.