Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make htex scale_in pick longest idle blocks (#3135)
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.
- Loading branch information