- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 47 for scoreRes (0.21 sec)
-
pkg/scheduler/framework/runtime/framework_test.go
} return inj.ScoreRes, nil } func injectNormalizeRes(inj injectedResult, scores framework.NodeScoreList) *framework.Status { if framework.Code(inj.NormalizeStatus) != framework.Success { return framework.NewStatus(framework.Code(inj.NormalizeStatus), "injecting failure.") } for i := range scores { scores[i].Score = inj.NormalizeRes } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 103K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/helper/normalize_score_test.go
}, { scores: []int64{0, 0, 0, 0}, expectedScores: []int64{0, 0, 0, 0}, }, { reverse: true, scores: []int64{0, 0, 0, 0}, expectedScores: []int64{100, 100, 100, 100}, }, } for i, test := range tests { t.Run(fmt.Sprintf("case_%d", i), func(t *testing.T) { scores := framework.NodeScoreList{} for _, score := range test.scores {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 14 16:15:18 UTC 2022 - 2.4K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/balanced_allocation_test.go
args config.NodeResourcesBalancedAllocationArgs runPreScore bool }{ { // Node1 scores (remaining resources) on 0-MaxNodeScore scale // CPU Fraction: 0 / 4000 = 0% // Memory Fraction: 0 / 10000 = 0% // Node1 Score: (1-0) * MaxNodeScore = MaxNodeScore // Node2 scores (remaining resources) on 0-MaxNodeScore scale // CPU Fraction: 0 / 4000 = 0 % // Memory Fraction: 0 / 10000 = 0%
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 15.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/helper/normalize_score.go
// scores from [0, max(scores)] to [0, maxPriority]. If reverse is set to true, it // reverses the scores by subtracting it from maxPriority. // Note: The input scores are always assumed to be non-negative integers. func DefaultNormalizeScore(maxPriority int64, reverse bool, scores framework.NodeScoreList) *framework.Status { var maxCount int64 for i := range scores { if scores[i].Score > maxCount {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 14 16:15:18 UTC 2022 - 1.4K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/interpodaffinity/scoring.go
} } func (m scoreMap) append(other scoreMap) { for topology, oScores := range other { scores := m[topology] if scores == nil { m[topology] = oScores continue } for k, v := range oScores { scores[k] += v } } } func (pl *InterPodAffinity) processExistingPod( state *preScoreState, existingPod *framework.PodInfo,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 10.5K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/least_allocated_test.go
wantErrs field.ErrorList wantStatusCode framework.Code }{ { // Node1 scores (remaining resources) on 0-MaxNodeScore scale // CPU Score: ((4000 - 0) * MaxNodeScore) / 4000 = MaxNodeScore // Memory Score: ((10000 - 0) * MaxNodeScore) / 10000 = MaxNodeScore // Node1 Score: (100 + 100) / 2 = 100 // Node2 scores (remaining resources) on 0-MaxNodeScore scale
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 18.8K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/most_allocated_test.go
wantErrs field.ErrorList wantStatusCode framework.Code }{ { // Node1 scores (used resources) on 0-MaxNodeScore scale // CPU Score: (0 * MaxNodeScore) / 4000 = 0 // Memory Score: (0 * MaxNodeScore) / 10000 = 0 // Node1 Score: (0 + 0) / 2 = 0 // Node2 scores (used resources) on 0-MaxNodeScore scale // CPU Score: (0 * MaxNodeScore) / 4000 = 0
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 16K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/requested_to_capacity_ratio_test.go
name: "nothing scheduled, nothing requested", }, { // Node1 scores (used resources) on 0-MaxNodeScore scale // Node1 Score: // rawScoringFunction(used + requested / available) // resourceScoringFunction((0+2),8) // = 2/8 * maxUtilization = 25 = rawScoringFunction(25) // Node1 Score: 2 // Node2 scores (used resources) on 0-MaxNodeScore scale // rawScoringFunction(used + requested / available)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 21.2K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/podtopologyspread/scoring.go
if s.IgnoredNodes.Has(score.Name) { scores[i].Score = invalidScore continue } if score.Score < minScore { minScore = score.Score } if score.Score > maxScore { maxScore = score.Score } } for i := range scores { if scores[i].Score == invalidScore { scores[i].Score = 0 continue } if maxScore == 0 { scores[i].Score = framework.MaxNodeScore continue
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 10.1K bytes - Viewed (0) -
pkg/scheduler/framework/extender.go
// Prioritize based on extender-implemented priority functions. The returned scores & weight // are used to compute the weighted score for an extender. The weighted scores are added to // the scores computed by Kubernetes scheduler. The total scores are used to do the host selection. Prioritize(pod *v1.Pod, nodes []*NodeInfo) (hostPriorities *extenderv1.HostPriorityList, weight int64, err error)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 19:07:19 UTC 2024 - 3.3K bytes - Viewed (0)