Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Duplicate
-
None
-
None
Description
from comment:
It seems to me a small behavior change is introduced by this patch. This patch scores node according to `resources.LargestUsageShare`. However, the largest usage in our cluster is always storage (and all nodes have same storage capacity). It results in the order is always based on `node id`. Before this patch, the order will compare remaining "usage" (vcore, memory, etc) when largest usage is equal.
There are two possible solutions.
- the nodeScore of nodeRef should keep all usages ([]float64) and the implementation of `Less` function should reuse `resources.CompareShares`
- add an new config to enable users to control scope. for example, the following config means we should compare vcore instead of largest resource
nodesortpolicy: type: binpacking usage: vcore
Attachments
Issue Links
- is superceded by
-
YUNIKORN-847 Use resource weighting for node sorting
- Closed
- relates to
-
YUNIKORN-807 Improve performance of node sorting
- Closed
- links to