[Bug] The sortByResourceRate sorting in ResourceNodeSelectRule is incorrect #4913
Closed
2 tasks done
Labels
bug
Something isn't working
Search before asking
Linkis Component
linkis-computation-governance
Steps to reproduce
The getLoadInstanceResourceRate method is used in sortByResourceRate. This method calculates the remaining resource ratio, and the higher the ratio, the lower the usage rate. So the sorting of sortByResourceRate should be from large to small. But the actual order is from small to large.
Expected behavior
Adjust the sortByResourceRate sorting from large to small.
Your environment
Anything else
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: