Revert "Revert "Revert revert of equivalence class hash calculation in scheduler""

This reverts commit 4386751b5d.
This commit is contained in:
Jonathan Basseri
2018-04-25 14:50:37 -07:00
parent 029c1d8b23
commit eace2d08d0
7 changed files with 266 additions and 339 deletions

View File

@@ -77,13 +77,6 @@ func init() {
// Fit is determined by node selector query.
factory.RegisterFitPredicate(predicates.MatchNodeSelectorPred, predicates.PodMatchNodeSelector)
// Use equivalence class to speed up heavy predicates phase.
factory.RegisterGetEquivalencePodFunction(
func(args factory.PluginFactoryArgs) algorithm.GetEquivalencePodFunc {
return predicates.NewEquivalencePodGenerator(args.PVCInfo)
},
)
// ServiceSpreadingPriority is a priority config factory that spreads pods by minimizing
// the number of pods (belonging to the same service) on the same node.
// Register the factory so that it's available, but do not include it as part of the default priorities