Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NormalizeScore (0.19 sec)

  1. pkg/scheduler/framework/runtime/framework_test.go

    					},
    				},
    			},
    			// scorePlugin1 Score returns 1, weight =1, so want=1.
    			// scoreWithNormalizePlugin1 Score returns 3, but NormalizeScore overrides to 4, weight=1, so want=4.
    			// scoreWithNormalizePlugin2 Score returns 4, but NormalizeScore overrides to 5, weight=2, so want=10.
    			want: []framework.NodePluginScores{
    				{
    					Name: "node1",
    					Scores: []framework.PluginScore{
    						{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 103K bytes
    - Viewed (0)
  2. pkg/scheduler/schedule_one_test.go

    	}
    	return int64(score), nil
    }
    
    func (pl *reverseNumericMapPlugin) ScoreExtensions() framework.ScoreExtensions {
    	return pl
    }
    
    func (pl *reverseNumericMapPlugin) NormalizeScore(_ context.Context, _ *framework.CycleState, _ *v1.Pod, nodeScores framework.NodeScoreList) *framework.Status {
    	var maxScore float64
    	minScore := math.MaxFloat64
    
    	for _, hostPriority := range nodeScores {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
Back to top