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

Make htex scale_in pick longest idle blocks #3135

Merged
merged 3 commits into from
Mar 6, 2024

Conversation

benclifford
Copy link
Collaborator

Prior to this, scale_in picked the shortest-idle (i.e. most recently used but now idle) blocks.

In the scaling code right now, there isn't any particular reason to order idle blocks in any particular order...

... but the next PR following on from this one will also consider unstarted blocks with infinite idle time, and in that situation, the policy will be that unstarted idle blocks should be scaled down in preference to currently running blocks. (other policies are possible and reasonable but not addressed by either this PR or the upcoming PR)

I think this was intended to work this way to begin with (although I'm unsure of the justification) but there is a sign error that is flipped by this PR.

@yadudoc or @ZhuozhaoLi do you have any insight into the purpose of this sorting?

Changed Behaviour

Block scale in order is changed - I don't think that will bother people.

Type of change

  • Bug fix? new feature?

Prior to this, scale_in picked the shortest-idle (i.e. most recently used but
now idle) blocks.

In the scaling code right now, there isn't any particular reason to order
idle blocks in any particular order...

... but the next PR following on from this one will also consider unstarted
blocks with infinite idle time, and in that situation, the policy will be that
unstarted idle blocks should be scaled down in preference to currently
running blocks. (other policies are possible and reasonable but not addressed
by either this PR or the upcoming PR)

I think this was intended to work this way to begin with (although I'm unsure
of the justification) but there is a sign error that is flipped by this PR.
Copy link
Collaborator

@khk-globus khk-globus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Subtle; a unit test might be in order.

@benclifford benclifford merged commit 8a63054 into master Mar 6, 2024
6 checks passed
@benclifford benclifford deleted the benc-ghent-scaling-orders branch March 6, 2024 12:20
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.

2 participants