- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for nodesToVictims (0.29 sec)
-
pkg/scheduler/framework/preemption/preemption.go
// allocation and garbage collection time. func pickOneNodeForPreemption(logger klog.Logger, nodesToVictims map[string]*extenderv1.Victims, scoreFuncs []func(node string) int64) string { if len(nodesToVictims) == 0 { return "" } allCandidates := make([]string, 0, len(nodesToVictims)) for node := range nodesToVictims { allCandidates = append(allCandidates, node) } if len(scoreFuncs) == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 25.1K bytes - Viewed (0) -
pkg/scheduler/framework/preemption/preemption_test.go
return true, "" } func (pl *FakePreemptionScorePostFilterPlugin) OrderedScoreFuncs(ctx context.Context, nodesToVictims map[string]*extenderv1.Victims) []func(node string) int64 { return []func(string) int64{ func(node string) int64 { var sumContainers int64 for _, pod := range nodesToVictims[node].Pods { sumContainers += int64(len(pod.Spec.Containers) + len(pod.Spec.InitContainers)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 18.7K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go
} return true, "" } // OrderedScoreFuncs returns a list of ordered score functions to select preferable node where victims will be preempted. func (pl *DefaultPreemption) OrderedScoreFuncs(ctx context.Context, nodesToVictims map[string]*extenderv1.Victims) []func(node string) int64 { return nil } // podTerminatingByPreemption returns the pod's terminating state if feature PodDisruptionConditions is not enabled.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Nov 25 19:36:04 UTC 2023 - 12.7K bytes - Viewed (0)