Skip to content

Commit 7f178b2

Browse files
committed
Adjust weight of PodTopologySpread to 2 in legacy Policy API
1 parent 2dc7b68 commit 7f178b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/scheduler/framework/plugins/legacy_registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ func NewLegacyRegistry() *LegacyRegistry {
213213
NodeAffinityPriority: 1,
214214
TaintTolerationPriority: 1,
215215
ImageLocalityPriority: 1,
216-
EvenPodsSpreadPriority: 1,
216+
EvenPodsSpreadPriority: 2,
217217
},
218218

219219
PredicateToConfigProducer: make(map[string]ConfigProducer),

test/integration/scheduler/scheduler_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func TestSchedulerCreationFromConfigMap(t *testing.T) {
134134
},
135135
"ScorePlugin": {
136136
{Name: "NodeResourcesBalancedAllocation", Weight: 1},
137-
{Name: "PodTopologySpread", Weight: 1},
137+
{Name: "PodTopologySpread", Weight: 2},
138138
{Name: "ImageLocality", Weight: 1},
139139
{Name: "InterPodAffinity", Weight: 1},
140140
{Name: "NodeResourcesLeastAllocated", Weight: 1},
@@ -228,7 +228,7 @@ kind: Policy
228228
},
229229
"ScorePlugin": {
230230
{Name: "NodeResourcesBalancedAllocation", Weight: 1},
231-
{Name: "PodTopologySpread", Weight: 1},
231+
{Name: "PodTopologySpread", Weight: 2},
232232
{Name: "ImageLocality", Weight: 1},
233233
{Name: "InterPodAffinity", Weight: 1},
234234
{Name: "NodeResourcesLeastAllocated", Weight: 1},

0 commit comments

Comments
 (0)