branch-2.1: [improve](routine load) ensure load balance after scaling up BE nodes #44693 (#44799)

Cherry-picked from #44693

Co-authored-by: hui lai <laihui@selectdb.com>
This commit is contained in:
github-actions[bot]
2024-12-02 15:04:11 +08:00
committed by GitHub
parent 54e2249a56
commit 8843b17a28

View File

@ -486,6 +486,7 @@ public class RoutineLoadManager implements Writable {
// check if be has idle slot
readLock();
try {
updateBeIdToMaxConcurrentTasks();
Map<Long, Integer> beIdToConcurrentTasks = getBeCurrentTasksNumMap();
int previousBeIdleTaskNum = 0;