Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for scorer (0.11 sec)

  1. pkg/scheduler/framework/plugins/noderesources/fit.go

    )
    
    // nodeResourceStrategyTypeMap maps strategy to scorer implementation
    var nodeResourceStrategyTypeMap = map[config.ScoringStrategyType]scorer{
    	config.LeastAllocated: func(args *config.NodeResourcesFitArgs) *resourceAllocationScorer {
    		resources := args.ScoringStrategy.Resources
    		return &resourceAllocationScorer{
    			Name:      string(config.LeastAllocated),
    			scorer:    leastResourceScorer(resources),
    			resources: resources,
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. pkg/scheduler/schedule_one_test.go

    					framework.NewStatus(framework.Error, "this score function shouldn't be executed because this plugin returned Skip in the PreScore"),
    				), "PreScore", "Score"),
    			},
    			extenders: nil,
    			want: []framework.NodePluginScores{
    				{Name: "node1", Scores: []framework.PluginScore{}},
    				{Name: "node2", Scores: []framework.PluginScore{}},
    			},
    		},
    		{
    			name: "the score from Image Locality plugin with image in all nodes",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/preemption/preemption.go

    			}
    			// The bigger the earliestStartTimeOnNode, the higher the score.
    			return earliestStartTimeOnNode.UnixNano()
    		}
    
    		// Each scoreFunc scores the nodes according to specific rules and keeps the name of the node
    		// with the highest score. If and only if the scoreFunc has more than one node with the highest
    		// score, we will execute the other scoreFunc in order of precedence.
    		scoreFuncs = []func(string) int64{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/noderesources/fit_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)
    				}
    				gotPriorities = append(gotPriorities, framework.NodeScore{Name: n.Name, Score: score})
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    func entropyScore(n *Node) int64 {
    	score := float64(0)
    
    	if len(n.In) == 0 {
    		score++ // Favor entry nodes
    	} else {
    		score += edgeEntropyScore(n, n.In, 0)
    	}
    
    	if len(n.Out) == 0 {
    		score++ // Favor leaf nodes
    	} else {
    		score += edgeEntropyScore(n, n.Out, n.Flat)
    	}
    
    	return int64(score*float64(n.Cum)) + n.Flat
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/tainttoleration/taint_toleration_test.go

    			},
    			expectedList: []framework.NodeScore{
    				{Name: "nodeA", Score: framework.MaxNodeScore},
    				{Name: "nodeB", Score: framework.MaxNodeScore},
    				{Name: "nodeC", Score: framework.MaxNodeScore},
    			},
    		},
    		// the count of taints on a node that are not tolerated by pod, matters.
    		{
    			name: "the more intolerable taints a node has, the lower score it gets.",
    			pod: podWithTolerations("pod1", []v1.Toleration{{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  10. cni/pkg/scopes/scopes.go

    //  limitations under the License.
    
    package scopes
    
    import (
    	"istio.io/istio/cni/pkg/constants"
    	"istio.io/istio/pkg/log"
    )
    
    // Required to get global logging to work
    var (
    	CNIAgent  = log.RegisterScope(constants.CNIAgentLogScope, "CNI agent scope")
    	CNIPlugin = log.RegisterScope(constants.CNIPluginLogScope, "CNI plugin scope")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:18 UTC 2024
    - 894 bytes
    - Viewed (0)
Back to top