This repository has been archived by the owner on May 25, 2023. It is now read-only.
Wrong calculation for queue deserved in proportion plugin #665
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
The kube-batch crash with following error message:
line 138 in proportion.go(https://github.com/kubernetes-sigs/kube-batch/blob/master/pkg/scheduler/plugins/proportion/proportion.go#L138) cause this issue:
However, deserved should always less then remaining, the root cause is the following line:
deserved
should not addattr.deserved
. If theattr.deserved
is not meet, next time it will increase then it is added todeserved
again andremaining
will subtract the same attr.deserverd twice.We should change to calculate using the increment part:
The text was updated successfully, but these errors were encountered: