Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for PreScore (0.25 sec)

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

    	// balancedAllocationPreScoreStateKey is the key in CycleState to NodeResourcesBalancedAllocation pre-computed data for Scoring.
    	balancedAllocationPreScoreStateKey = "PreScore" + BalancedAllocationName
    )
    
    // balancedAllocationPreScoreState computed at PreScore and used at Score.
    type balancedAllocationPreScoreState struct {
    	// podRequests have the same order of the resources defined in NodeResourcesFitArgs.Resources,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/interpodaffinity/scoring.go

    	"k8s.io/kubernetes/pkg/scheduler/framework"
    )
    
    // preScoreStateKey is the key in CycleState to InterPodAffinity pre-computed data for Scoring.
    const preScoreStateKey = "PreScore" + Name
    
    type scoreMap map[string]map[string]int64
    
    // preScoreState computed at PreScore and used at Score.
    type preScoreState struct {
    	topologyScore scoreMap
    	podInfo       *framework.PodInfo
    	// A copy of the incoming pod's namespace labels.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  3. pkg/scheduler/apis/config/v1/default_plugins.go

    	defaultPlugins.PostFilter = mergePluginSet(logger, defaultPlugins.PostFilter, customPlugins.PostFilter)
    	defaultPlugins.PreScore = mergePluginSet(logger, defaultPlugins.PreScore, customPlugins.PreScore)
    	defaultPlugins.Score = mergePluginSet(logger, defaultPlugins.Score, customPlugins.Score)
    	defaultPlugins.Reserve = mergePluginSet(logger, defaultPlugins.Reserve, customPlugins.Reserve)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/runtime/instrumented_plugins.go

    	metric compbasemetrics.CounterMetric
    }
    
    var _ framework.PreScorePlugin = &instrumentedPreScorePlugin{}
    
    func (p *instrumentedPreScorePlugin) PreScore(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodes []*framework.NodeInfo) *framework.Status {
    	status := p.PreScorePlugin.PreScore(ctx, state, pod, nodes)
    	if !status.IsSkip() {
    		p.metric.Inc()
    	}
    	return status
    }
    
    type instrumentedScorePlugin struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/nodeaffinity/node_affinity.go

    	return nil
    }
    
    // preScoreState computed at PreScore and used at Score.
    type preScoreState struct {
    	preferredNodeAffinity *nodeaffinity.PreferredSchedulingTerms
    }
    
    // Clone implements the mandatory Clone interface. We don't really copy the data since
    // there is no need for that.
    func (s *preScoreState) Clone() framework.StateData {
    	return s
    }
    
    // PreScore builds and writes cycle state used by Score and NormalizeScore.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 12:00:10 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  6. pkg/scheduler/testing/framework/framework_helpers.go

    	switch extension {
    	case "QueueSort":
    		return &plugins.QueueSort
    	case "Filter":
    		return &plugins.Filter
    	case "PreFilter":
    		return &plugins.PreFilter
    	case "PreScore":
    		return &plugins.PreScore
    	case "Score":
    		return &plugins.Score
    	case "Bind":
    		return &plugins.Bind
    	case "Reserve":
    		return &plugins.Reserve
    	case "Permit":
    		return &plugins.Permit
    	case "PreBind":
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  7. pkg/scheduler/metrics/metrics.go

    	PreFilterExtensionRemovePod = "PreFilterExtensionRemovePod"
    	PostFilter                  = "PostFilter"
    	PreScore                    = "PreScore"
    	Score                       = "Score"
    	ScoreExtensionNormalize     = "ScoreExtensionNormalize"
    	PreBind                     = "PreBind"
    	Bind                        = "Bind"
    	PostBind                    = "PostBind"
    	Reserve                     = "Reserve"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 08:22:53 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go

    			tolerationList = append(tolerationList, toleration)
    		}
    	}
    	return
    }
    
    // PreScore builds and writes cycle state used by Score and NormalizeScore.
    func (pl *TaintToleration) PreScore(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodes []*framework.NodeInfo) *framework.Status {
    	if len(nodes) == 0 {
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/noderesources/requested_to_capacity_ratio_test.go

    				return
    			}
    
    			var gotScores framework.NodeScoreList
    			for _, n := range test.nodes {
    				status := p.(framework.PreScorePlugin).PreScore(ctx, state, test.requestedPod, tf.BuildNodeInfos(test.nodes))
    				if !status.IsSuccess() {
    					t.Errorf("PreScore is expected to return success, but didn't. Got status: %v", status)
    				}
    				score, status := p.(framework.ScorePlugin).Score(ctx, state, test.requestedPod, n.Name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/podtopologyspread/scoring.go

    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/component-helpers/scheduling/corev1/nodeaffinity"
    	"k8s.io/kubernetes/pkg/scheduler/framework"
    )
    
    const preScoreStateKey = "PreScore" + Name
    const invalidScore = -1
    
    // preScoreState computed at PreScore and used at Score.
    // Fields are exported for comparison during testing.
    type preScoreState struct {
    	Constraints []topologySpreadConstraint
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 10.1K bytes
    - Viewed (0)
Back to top