GithubHelp home page GithubHelp logo

Comments (2)

ryanday36 avatar ryanday36 commented on August 11, 2024 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.

dongahn avatar dongahn commented on August 11, 2024 1

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)

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.