Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
autoscaler: fix premature end of binpacking
When PermissionToAddNode gets called without actually adding a new node, the node counter in the thresholdBasedEstimationLimiter gets out of sync with the actual number of new nodes. This can happen when the "is the last node empty" check triggers. The solution used here is to rearrange the checks so that PermissionToAddNode is followed by adding a new node. Alternatively, it might also be possible to pass the current number of nodes as parameter.
- Loading branch information