Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 347 for scorer (0.12 sec)

  1. pkg/scheduler/framework/plugins/volumebinding/volume_binding.go

    	}
    	if state.hasStaticBindings {
    		return nil
    	}
    	return framework.NewStatus(framework.Skip)
    }
    
    // Score invoked at the score extension point.
    func (pl *VolumeBinding) Score(ctx context.Context, cs *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status) {
    	if pl.scorer == nil {
    		return 0, nil
    	}
    	state, err := getStateData(cs)
    	if err != nil {
    		return 0, framework.AsStatus(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:13:06 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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{
    						{
    							Name:  scorePlugin1,
    							Score: 1,
    						},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 103K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/schedule.go

    }
    
    // storeOrder orders values with respect to stores. That is,
    // if v transitively depends on store s, v is ordered after s,
    // otherwise v is ordered before s.
    // Specifically, values are ordered like
    //
    //	store1
    //	NilCheck that depends on store1
    //	other values that depends on store1
    //	store2
    //	NilCheck that depends on store2
    //	other values that depends on store2
    //	...
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 15:53:17 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/inline/inlheur/scoring.go

    		score, tmask = adjustScore(panicPathAdj, score, tmask)
    	}
    	if csflags&CallSiteInInitFunc != 0 {
    		score, tmask = adjustScore(initFuncAdj, score, tmask)
    	}
    
    	// Then adjustments to encourage inlining in selected cases.
    	if csflags&CallSiteInLoop != 0 {
    		score, tmask = adjustScore(inLoopAdj, score, tmask)
    	}
    
    	// Stop here if no callee props.
    	if calleeProps == nil {
    		cs.Score, cs.ScoreMask = score, tmask
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/extender.go

    	// Prioritize based on extender-implemented priority functions. The returned scores & weight
    	// are used to compute the weighted score for an extender. The weighted scores are added to
    	// the scores computed by Kubernetes scheduler. The total scores are used to do the host selection.
    	Prioritize(pod *v1.Pod, nodes []*NodeInfo) (hostPriorities *extenderv1.HostPriorityList, weight int64, err error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. 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)
Back to top