Revert "Change equivalence class hashing function"

This commit is contained in:
Bobby (Babak) Salamat
2018-01-26 18:13:15 -08:00
committed by GitHub
parent 2cc0ecdf0f
commit 2274e93b64
9 changed files with 331 additions and 257 deletions

View File

@@ -77,6 +77,13 @@ 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