- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 5,932 for Score (0.07 sec)
-
pkg/scheduler/framework/plugins/noderesources/balanced_allocation_test.go
hostResult, status := p.(framework.ScorePlugin).Score(ctx, state, test.pod, test.nodes[i].Name) if !status.IsSuccess() { t.Errorf("Score is expected to return success, but didn't. Got status: %v", status) } if !reflect.DeepEqual(test.expectedList[i].Score, hostResult) { t.Errorf("got score %v for host %v, expected %v", hostResult, test.nodes[i].Name, test.expectedList[i].Score) } } }) }
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/shape_score.go
// shape[0].Score for p < shape[0].Utilization // shape[n-1].Score for p > shape[n-1].Utilization // // and linear between points (p < shape[i].Utilization) func BuildBrokenLinearFunction(shape FunctionShape) func(int64) int64 { return func(p int64) int64 { for i := 0; i < len(shape); i++ { if p <= int64(shape[i].Utilization) { if i == 0 { return shape[0].Score }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 1.7K bytes - Viewed (0) -
src/go/doc/testdata/examples/issue43658.golden
Low:1.2 High:1.6 Score:10 Communities:[[0 3 4 5 6 10] [1 7 9 12] [2 8 11]] Q=[10.5 26.7] Low:1.6 High:1.6 Score:8 Communities:[[0 1 6 7 9 12] [2 8 11] [3 4 5 10]] Q=[5.56 39.8] Low:1.6 High:1.8 Score:2 Communities:[[0 2 3 4 5 6 10] [1 7 8 9 11 12]] Q=[-1.82 48.6] Low:1.8 High:2.3 Score:-6 Communities:[[0 2 3 4 5 6 8 10 11] [1 7 9 12]] Q=[-5 57.5]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 23:13:45 UTC 2022 - 4.5K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/requested_to_capacity_ratio_test.go
} score, status := p.(framework.ScorePlugin).Score(ctx, state, test.requestedPod, n.Name) if !status.IsSuccess() { t.Errorf("Score is expected to return success, but didn't. Got status: %v", status) } gotScores = append(gotScores, framework.NodeScore{Name: n.Name, Score: score}) } if diff := cmp.Diff(test.expectedScores, gotScores); diff != "" {
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/noderesources/least_allocated_test.go
resources: defaultResources, }, { // CPU Score: ((4000 - 3000) *100) / 4000 = 25 // Memory Score: ((10000 - 5000) *100) / 10000 = 50 // Node1 Score: (25 * 1 + 50 * 2) / (1 + 2) = 41 // CPU Score: ((6000 - 3000) *100) / 6000 = 50 // Memory Score: ((10000 - 5000) *100) / 10000 = 50
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 18.8K bytes - Viewed (0) -
src/cmd/compile/internal/inline/inlheur/testdata/props/acrosscall.go
// callsite: acrosscall.go:58:9|0 flagstr "" flagval 0 score 8 mask 0 maskstr "" // <endcallsites> // <endfuncpreamble> func T_feeds_if_via_call(x int) { feedsif(x) } // acrosscall.go T_feeds_if_via_call_conditional 69 0 1 // ParamFlags // 0 ParamMayFeedIfOrSwitch // <endpropsdump> // {"Flags":0,"ParamFlags":[64],"ResultFlags":null} // callsite: acrosscall.go:71:10|0 flagstr "" flagval 0 score 8 mask 0 maskstr "" // <endcallsites>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 20:15:25 UTC 2023 - 5.3K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/most_allocated_test.go
expectedScores: []framework.NodeScore{{Name: "node1", Score: 95}, {Name: "node2", Score: 75}}, resources: defaultResources, }, { // CPU Score: (3000 *100) / 4000 = 75 // Memory Score: (5000 *100) / 10000 = 50 // Node1 Score: (75 * 1 + 50 * 2) / (1 + 2) = 58 // CPU Score: (3000 *100) / 6000 = 50 // Memory Score: (5000 *100) / 10000 = 50 // Node2 Score: (50 * 1 + 50 * 2) / (1 + 2) = 50
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/imagelocality/image_locality_test.go
name: "pod with multiple large images, node2 is preferred", }, { // Pod: gcr.io/30 gcr.io/40 // Node1 // Image: gcr.io/20:latest 20MB, gcr.io/30:latest 30MB, gcr.io/40:latest 40MB // Score: 100 * (30M + 40M * 1/2 - 23M) / (1000M * 2 - 23M) = 1 // Node2 // Image: 100 * (30M - 23M) / (1000M * 2 - 23M) = 0 // Score: 0
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 19 06:17:57 UTC 2024 - 10.3K bytes - Viewed (0) -
src/go/doc/testdata/examples/issue43658.go
fmt.Printf("Low:%.2v High:%.2v Score:%v Communities:%v Q=%.3v\n", d.Low, d.High, d.Score, comm, community.Q(g, comm, d.Low)) } // Output: // Low:0.1 High:0.29 Score:14 Communities:[[0 1 2 3 4 5]] Q=0.9 // Low:0.29 High:2.3 Score:12 Communities:[[0 1 2] [3 4 5]] Q=0.714 // Low:2.3 High:3.5 Score:4 Communities:[[0 1] [2] [3] [4 5]] Q=-0.31 // Low:3.5 High:10 Score:0 Communities:[[0] [1] [2] [3] [4] [5]] Q=-0.607 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 23:13:45 UTC 2022 - 6.6K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/interpodaffinity/scoring.go
for i := range scores { score := scores[i].Score if score > maxCount { maxCount = score } if score < minCount { minCount = score } } maxMinDiff := maxCount - minCount for i := range scores { fScore := float64(0) if maxMinDiff > 0 { fScore = float64(framework.MaxNodeScore) * (float64(scores[i].Score-minCount) / float64(maxMinDiff)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 10.5K bytes - Viewed (0)