flux-framework / flux-accounting

bank/accounting interface for the Flux resource manager
https://flux-framework.readthedocs.io/projects/flux-accounting/en/latest/index.html
GNU Lesser General Public License v3.0
3 stars 10 forks source link

doc: add priority equation to accounting guide #513

Closed garlick closed 1 month ago

garlick commented 1 month ago

Problem: the accounting guide uses words to describe how priority is calculated but math would be clearer.

Add "queue" to the lists of factors and format the list as a dictionary rather than a bullet list.

Use a math expression for the priority value.

I briefly looked at the code and priority appeared to be calculated this way - did I get it right?

garlick commented 1 month ago

(oops fixed a typo and forced a push)

garlick commented 1 month ago

Just to confirm, so the urgency factor has a weight of 1 and we subtract 16 from it before adding?

cmoussa1 commented 1 month ago

You are correct, it has a weight of 1.

garlick commented 1 month ago

OK, I'll set MWP then. Thanks!