Merge pull request #1120 from dddddai/redundant-sort
Remove redundant sort in scale up schedule
This commit is contained in:
commit
45f3aec63d
|
@ -2,7 +2,6 @@ package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"sort"
|
|
||||||
|
|
||||||
"k8s.io/apimachinery/pkg/util/sets"
|
"k8s.io/apimachinery/pkg/util/sets"
|
||||||
|
|
||||||
|
@ -223,7 +222,6 @@ func scaleUpScheduleByReplicaDivisionPreference(
|
||||||
|
|
||||||
// Step 3: Calculate available replicas of all candidates
|
// Step 3: Calculate available replicas of all candidates
|
||||||
clusterAvailableReplicas := calAvailableReplicas(clusters, newSpec)
|
clusterAvailableReplicas := calAvailableReplicas(clusters, newSpec)
|
||||||
sort.Sort(TargetClustersList(clusterAvailableReplicas))
|
|
||||||
|
|
||||||
// Step 4: Begin dividing.
|
// Step 4: Begin dividing.
|
||||||
// Only the new replicas are considered during this scheduler, the old replicas will not be moved.
|
// Only the new replicas are considered during this scheduler, the old replicas will not be moved.
|
||||||
|
|
Loading…
Reference in New Issue