- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for nodesScores (0.33 sec)
-
pkg/scheduler/framework/plugins/noderesources/least_allocated.go
return func(requested, allocable []int64) int64 { var nodeScore, weightSum int64 for i := range requested { if allocable[i] == 0 { continue } weight := resources[i].Weight resourceScore := leastRequestedScore(requested[i], allocable[i]) nodeScore += resourceScore * weight weightSum += weight } if weightSum == 0 { return 0 } return nodeScore / weightSum } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Mar 12 01:50:09 UTC 2023 - 2K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/scorer.go
return func(classResources classResourceMap) int64 { var nodeScore int64 // in alpha stage, all classes have the same weight weightSum := len(classResources) if weightSum == 0 { return 0 } for _, resource := range classResources { classScore := f(resource.Requested, resource.Capacity) nodeScore += classScore } return int64(math.Round(float64(nodeScore) / float64(weightSum))) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 13 11:08:45 UTC 2021 - 1.8K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/helper/normalize_score_test.go
scores := framework.NodeScoreList{} for _, score := range test.scores { scores = append(scores, framework.NodeScore{Score: score}) } expectedScores := framework.NodeScoreList{} for _, score := range test.expectedScores { expectedScores = append(expectedScores, framework.NodeScore{Score: score}) } DefaultNormalizeScore(framework.MaxNodeScore, test.reverse, 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/requested_to_capacity_ratio.go
} return func(requested, allocable []int64) int64 { var nodeScore, weightSum int64 for i := range requested { if allocable[i] == 0 { continue } weight := resources[i].Weight resourceScore := resourceScoringFunction(requested[i], allocable[i]) if resourceScore > 0 { nodeScore += resourceScore * weight weightSum += weight } } if weightSum == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Dec 21 15:23:47 UTC 2022 - 2.6K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/most_allocated.go
return func(requested, allocable []int64) int64 { var nodeScore, weightSum int64 for i := range requested { if allocable[i] == 0 { continue } weight := resources[i].Weight resourceScore := mostRequestedScore(requested[i], allocable[i]) nodeScore += resourceScore * weight weightSum += weight } if weightSum == 0 { return 0 } return nodeScore / weightSum } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Dec 21 15:23:47 UTC 2022 - 2.2K bytes - Viewed (0)