Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 860 for scorer (0.28 sec)

  1. 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)
  2. pkg/scheduler/framework/plugins/helper/normalize_score.go

    		if scores[i].Score > maxCount {
    			maxCount = scores[i].Score
    		}
    	}
    
    	if maxCount == 0 {
    		if reverse {
    			for i := range scores {
    				scores[i].Score = maxPriority
    			}
    		}
    		return nil
    	}
    
    	for i := range scores {
    		score := scores[i].Score
    
    		score = maxPriority * score / maxCount
    		if reverse {
    			score = maxPriority - score
    		}
    
    		scores[i].Score = score
    	}
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 14 16:15:18 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/noderesources/least_allocated_test.go

    			resources:      defaultResources,
    		},
    		{
    			// Node1 scores on 0-MaxNodeScore scale
    			// CPU Score: ((4000 - 3000) * MaxNodeScore) / 4000 = 25
    			// Memory Score: ((10000 - 5000) * MaxNodeScore) / 10000 = 50
    			// Node1 Score: (25 + 50) / 2 = 37
    			// Node2 scores 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)
  4. pkg/scheduler/framework/plugins/noderesources/requested_to_capacity_ratio_test.go

    			// resources["intel.com/bar"] = 5
    			// Node1 scores (used resources) on 0-10 scale
    			// used + requested / available
    			// intel.com/foo Score: { (0 + 4) / 8 } * 10 = 0
    			// intel.com/bar Score: { (0 + 2) / 4 } * 10 = 0
    			// Node1 Score: (0.25 * 3) + (0.5 * 5) / 8 = 5
    			// resources["intel.com/foo"] = 3
    			// resources["intel.com/bar"] = 5
    			// Node2 scores (used resources) on 0-10 scale
    			// 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)
  5. pkg/scheduler/framework/plugins/noderesources/most_allocated_test.go

    	}{
    		{
    			// 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
    			// Memory Score: (0 * MaxNodeScore) / 10000 = 0
    			// Node2 Score: (0 + 0) / 2 = 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 16K bytes
    - Viewed (0)
  6. pkg/scheduler/schedule_one.go

    		wg.Wait()
    		for i := range nodesScores {
    			if score, ok := allNodeExtendersScores[nodes[i].Node().Name]; ok {
    				nodesScores[i].Scores = append(nodesScores[i].Scores, score.Scores...)
    				nodesScores[i].TotalScore += score.TotalScore
    			}
    		}
    	}
    
    	if loggerVTen.Enabled() {
    		for i := range nodesScores {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 13:28:08 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  7. operator/pkg/object/objects.go

    // have a deterministic ordering in which K8sObjects are applied.
    func (os K8sObjects) Sort(score func(o *K8sObject) int) {
    	sort.Slice(os, func(i, j int) bool {
    		iScore := score(os[i])
    		jScore := score(os[j])
    		return iScore < jScore ||
    			(iScore == jScore &&
    				os[i].Group < os[j].Group) ||
    			(iScore == jScore &&
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 21 07:16:46 UTC 2023
    - 15.5K bytes
    - Viewed (1)
  8. pkg/kubelet/qos/policy.go

    	KubeProxyOOMScoreAdj  int = -999
    	guaranteedOOMScoreAdj int = -997
    	besteffortOOMScoreAdj int = 1000
    )
    
    // GetContainerOOMScoreAdjust returns the amount by which the OOM score of all processes in the
    // container should be adjusted.
    // The OOM score of a process is the percentage of memory it consumes
    // multiplied by 10 (barring exceptional cases) + a configurable quantity which is between -1000
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 14:49:26 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/interface.go

    // NodePluginScores is a struct with node name and scores for that node.
    type NodePluginScores struct {
    	// Name is node name.
    	Name string
    	// Scores is scores from plugins and extenders.
    	Scores []PluginScore
    	// TotalScore is the total score in Scores.
    	TotalScore int64
    }
    
    // PluginScore is a struct with plugin/extender name and score.
    type PluginScore struct {
    	// Name is the name of plugin or extender.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go

    	if err != nil {
    		return 0, framework.AsStatus(err)
    	}
    
    	score := int64(countIntolerableTaintsPreferNoSchedule(node.Spec.Taints, s.tolerationsPreferNoSchedule))
    	return score, nil
    }
    
    // NormalizeScore invoked after scoring all nodes.
    func (pl *TaintToleration) NormalizeScore(ctx context.Context, _ *framework.CycleState, pod *v1.Pod, scores framework.NodeScoreList) *framework.Status {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top