Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-emption Based On Adjusted Fair Share #3714

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

d80tb7
Copy link
Collaborator

@d80tb7 d80tb7 commented Jun 20, 2024

Introduces the concept of adjustedFairShare which is calculated as follows:

  • Define demand as total resources of all active jobs for a queue
  • Define cappedFairShare for a queue as demand`totalClusterResources`
  • Define excessShare as fairShare - cappedFairShare
  • For queues where excessShare > 0, adjustedFairShare = cappedFairShare
  • For all other queues we repeated the calculation, to reshare the total excessShare

When choosing what queues are eligable for preemption,the default is now to use adjustedFairShare rather than fairShare. This behaviour can be controlled by a new useAdjustedFairShareProtection flag

Chris Martin added 2 commits June 17, 2024 17:46
wip
Signed-off-by: Chris Martin <chris@cmartinit.co.uk>
wip
Signed-off-by: Chris Martin <chris@cmartinit.co.uk>
cmd/fish/main.go Outdated Show resolved Hide resolved
Chris Martin added 7 commits June 21, 2024 14:27
Signed-off-by: Chris Martin <chris@cmartinit.co.uk>
Signed-off-by: Chris Martin <chris@cmartinit.co.uk>
wip
Signed-off-by: Chris Martin <chris@cmartinit.co.uk>
wip
Signed-off-by: Chris Martin <chris@cmartinit.co.uk>
Signed-off-by: Chris Martin <chris@cmartinit.co.uk>
Signed-off-by: Chris Martin <chris@cmartinit.co.uk>
Signed-off-by: Chris Martin <chris@cmartinit.co.uk>
@d80tb7 d80tb7 changed the title [WIP] Pre-emption Based On Adjusted Fair Share Pre-emption Based On Adjusted Fair Share Jun 23, 2024
Signed-off-by: Chris Martin <chris@cmartinit.co.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant