Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for MaxNodeScore (0.61 sec)

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

    		{
    			// Node1 scores (remaining resources) on 0-MaxNodeScore scale
    			// CPU Fraction: 0 / 4000 = 0%
    			// Memory Fraction: 0 / 10000 = 0%
    			// Node1 Score: (1-0) * MaxNodeScore = MaxNodeScore
    			// Node2 scores (remaining resources) on 0-MaxNodeScore scale
    			// CPU Fraction: 0 / 4000 = 0 %
    			// Memory Fraction: 0 / 10000 = 0%
    			// Node2 Score: (1-0) * MaxNodeScore = MaxNodeScore
    			pod:          st.MakePod().Obj(),
    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/noderesources/least_allocated.go

    }
    
    // The unused capacity is calculated on a scale of 0-MaxNodeScore
    // 0 being the lowest priority and `MaxNodeScore` being the highest.
    // The more unused resources the higher the score is.
    func leastRequestedScore(requested, capacity int64) int64 {
    	if capacity == 0 {
    		return 0
    	}
    	if requested > capacity {
    		return 0
    	}
    
    	return ((capacity - requested) * framework.MaxNodeScore) / capacity
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 12 01:50:09 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/noderesources/most_allocated.go

    // based on the maximum of the average of the fraction of requested to capacity.
    //
    // Details:
    // (cpu(MaxNodeScore * requested * cpuWeight / capacity) + memory(MaxNodeScore * requested * memoryWeight / capacity) + ...) / weightSum
    func mostResourceScorer(resources []config.ResourceSpec) func(requested, allocable []int64) int64 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 21 15:23:47 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/noderesources/least_allocated_test.go

    		},
    		{
    			// Node1 scores on 0-MaxNodeScore scale
    			// CPU Score: ((4000 - 0) * MaxNodeScore) / 4000 = MaxNodeScore
    			// Memory Score: ((10000 - 0) * MaxNodeScore) / 10000 = MaxNodeScore
    			// Node1 Score: (MaxNodeScore + MaxNodeScore) / 2 = MaxNodeScore
    			// Node2 scores on 0-MaxNodeScore scale
    			// CPU Score: ((4000 - 0) * MaxNodeScore) / 4000 = MaxNodeScore
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 18.8K 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/framework/plugins/interpodaffinity/scoring_test.go

    				{ObjectMeta: metav1.ObjectMeta{Name: "node5", Labels: labelRgIndia}},
    			},
    			expectedList: []framework.NodeScore{{Name: "node1", Score: framework.MaxNodeScore}, {Name: "node2", Score: 0}, {Name: "node3", Score: framework.MaxNodeScore}, {Name: "node4", Score: framework.MaxNodeScore}, {Name: "node5", Score: 0}},
    		},
    		// Test with the different operators and values for pod affinity scheduling preference, including some match failures.
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 44.8K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/noderesources/requested_to_capacity_ratio_test.go

    			},
    			existingPods: []*v1.Pod{
    				st.MakePod().Node("node1").Obj(),
    				st.MakePod().Node("node1").Obj(),
    			},
    			expectedScores: []framework.NodeScore{{Name: "node1", Score: framework.MaxNodeScore}, {Name: "node2", Score: framework.MaxNodeScore}},
    			resources:      defaultResources,
    			shape:          shape,
    		},
    		{
    			name: "nothing scheduled, resources requested, differently sized nodes (default - least requested nodes have priority)",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/noderesources/requested_to_capacity_ratio.go

    			Utilization: int64(point.Utilization),
    			// MaxCustomPriorityScore may diverge from the max score used in the scheduler and defined by MaxNodeScore,
    			// therefore we need to scale the score returned by requested to capacity ratio to the score range
    			// used by the scheduler.
    			Score: int64(point.Score) * (framework.MaxNodeScore / config.MaxCustomPriorityScore),
    		})
    	}
    
    	return buildRequestedToCapacityRatioScorerFunction(shapes, resources)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 21 15:23:47 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/tainttoleration/taint_toleration_test.go

    						Effect: v1.TaintEffectPreferNoSchedule,
    					},
    				}),
    			},
    			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.
    		{
    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. pkg/scheduler/framework/plugins/noderesources/balanced_allocation.go

    	}
    
    	// STD (standard deviation) is always a positive value. 1-deviation lets the score to be higher for node which has least deviation and
    	// multiplying it with `MaxNodeScore` provides the scaling factor needed.
    	return int64((1 - std) * float64(framework.MaxNodeScore))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 6.5K bytes
    - Viewed (0)
Back to top