Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for nodeScoreList (0.17 sec)

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

    	}
    	scalarResource := map[string]int64{
    		"nvidia.com/gpu": 8,
    	}
    
    	tests := []struct {
    		pod          *v1.Pod
    		pods         []*v1.Pod
    		nodes        []*v1.Node
    		expectedList framework.NodeScoreList
    		name         string
    		args         config.NodeResourcesBalancedAllocationArgs
    		runPreScore  bool
    	}{
    		{
    			// Node1 scores (remaining resources) on 0-MaxNodeScore scale
    			// CPU Fraction: 0 / 4000 = 0%
    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/schedule_one.go

    // It also returns the top {count} Nodes,
    // and the top of the list will be always the selected host.
    func selectHost(nodeScoreList []framework.NodePluginScores, count int) (string, []framework.NodePluginScores, error) {
    	if len(nodeScoreList) == 0 {
    		return "", nil, errEmptyPriorityList
    	}
    
    	var h nodeScoreHeap = nodeScoreList
    	heap.Init(&h)
    	cntOfMaxScore := 1
    	selectedIndex := 0
    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/plugins/nodeaffinity/node_affinity_test.go

    					},
    				},
    			},
    		},
    	}
    
    	tests := []struct {
    		name               string
    		pod                *v1.Pod
    		nodes              []*v1.Node
    		expectedList       framework.NodeScoreList
    		args               config.NodeAffinityArgs
    		runPreScore        bool
    		wantPreScoreStatus *framework.Status
    	}{
    		{
    			name: "all nodes are same priority as NodeAffinity is nil",
    			pod: &v1.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 12:00:10 UTC 2023
    - 38.7K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/nodeaffinity/node_affinity.go

    	}
    
    	return count, nil
    }
    
    // NormalizeScore invoked after scoring all nodes.
    func (pl *NodeAffinity) NormalizeScore(ctx context.Context, state *framework.CycleState, pod *v1.Pod, scores framework.NodeScoreList) *framework.Status {
    	return helper.DefaultNormalizeScore(framework.MaxNodeScore, false, scores)
    }
    
    // ScoreExtensions of the Score plugin.
    func (pl *NodeAffinity) ScoreExtensions() framework.ScoreExtensions {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 12:00:10 UTC 2023
    - 12.6K bytes
    - Viewed (0)
Back to top