Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for minCandidateNodesAbsolute (0.63 sec)

  1. pkg/scheduler/apis/config/validation/validation_pluginargs.go

    	}
    	return nil
    }
    
    // validateMinCandidateNodesAbsolute validates that minCandidateNodesAbsolute
    // is within the allowed range.
    func validateMinCandidateNodesAbsolute(minCandidateNodesAbsolute int32, p *field.Path) *field.Error {
    	if minCandidateNodesAbsolute < 0 {
    		return field.Invalid(p, minCandidateNodesAbsolute, "not in valid range [0, inf)")
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 09:29:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  2. pkg/scheduler/apis/config/validation/validation_pluginargs_test.go

    				MinCandidateNodesPercentage: 900,
    				MinCandidateNodesAbsolute:   100,
    			},
    			wantErrs: field.ErrorList{
    				&field.Error{
    					Type:  field.ErrorTypeInvalid,
    					Field: "minCandidateNodesPercentage",
    				},
    			},
    		},
    		"negative minCandidateNodesAbsolute": {
    			args: config.DefaultPreemptionArgs{
    				MinCandidateNodesPercentage: 20,
    				MinCandidateNodesAbsolute:   -1,
    			},
    			wantErrs: field.ErrorList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  3. pkg/scheduler/apis/config/scheme/scheme_test.go

    			data: []byte(`
    apiVersion: kubescheduler.config.k8s.io/v1
    kind: KubeSchedulerConfiguration
    profiles:
    - pluginConfig:
      - name: DefaultPreemption
        args:
          minCandidateNodesPercentage: 50
          minCandidateNodesAbsolute: 500
      - name: InterPodAffinity
        args:
          hardPodAffinityWeight: 5
      - name: NodeResourcesFit
        args:
          ignoredResources: ["foo"]
      - name: PodTopologySpread
        args:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  4. pkg/scheduler/apis/config/types_pluginargs.go

    	// unspecified.
    	MinCandidateNodesPercentage int32
    	// MinCandidateNodesAbsolute is the absolute minimum number of candidates to
    	// shortlist. The likely number of candidates enumerated for dry running
    	// preemption is given by the formula:
    	// numCandidates = max(numNodes * minCandidateNodesPercentage, minCandidateNodesAbsolute)
    	// We say "likely" because there are other factors such as PDB violations
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 13 23:15:53 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  5. pkg/scheduler/apis/config/validation/validation_test.go

    					Disabled: []config.Plugin{{Name: "*"}},
    				},
    			},
    			PluginConfig: []config.PluginConfig{{
    				Name: "DefaultPreemption",
    				Args: &config.DefaultPreemptionArgs{MinCandidateNodesPercentage: 10, MinCandidateNodesAbsolute: 100},
    			}},
    		}, {
    			SchedulerName:            "other",
    			PercentageOfNodesToScore: ptr.To[int32](35),
    			Plugins: &config.Plugins{
    				QueueSort: config.PluginSet{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. pkg/scheduler/apis/config/v1/defaults.go

    func SetDefaults_DefaultPreemptionArgs(obj *configv1.DefaultPreemptionArgs) {
    	if obj.MinCandidateNodesPercentage == nil {
    		obj.MinCandidateNodesPercentage = ptr.To[int32](10)
    	}
    	if obj.MinCandidateNodesAbsolute == nil {
    		obj.MinCandidateNodesAbsolute = ptr.To[int32](100)
    	}
    }
    
    func SetDefaults_InterPodAffinityArgs(obj *configv1.InterPodAffinityArgs) {
    	if obj.HardPodAffinityWeight == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go

    // <minCandidateNodesPercentage> and <minCandidateNodesAbsolute>. The number of
    // candidates returned will never be greater than <numNodes>.
    func (pl *DefaultPreemption) calculateNumCandidates(numNodes int32) int32 {
    	n := (numNodes * pl.args.MinCandidateNodesPercentage) / 100
    	if n < pl.args.MinCandidateNodesAbsolute {
    		n = pl.args.MinCandidateNodesAbsolute
    	}
    	if n > numNodes {
    		n = numNodes
    	}
    	return n
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 25 19:36:04 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  8. pkg/scheduler/apis/config/v1/defaults_test.go

    				MinCandidateNodesAbsolute:   ptr.To[int32](100),
    			},
    		},
    		{
    			name: "DefaultPreemptionArgs with value",
    			in: &configv1.DefaultPreemptionArgs{
    				MinCandidateNodesPercentage: ptr.To[int32](50),
    			},
    			want: &configv1.DefaultPreemptionArgs{
    				MinCandidateNodesPercentage: ptr.To[int32](50),
    				MinCandidateNodesAbsolute:   ptr.To[int32](100),
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:03:04 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  9. cmd/kube-scheduler/app/options/options_test.go

    								},
    							},
    							{
    								Name: "DefaultPreemption",
    								Args: &kubeschedulerconfig.DefaultPreemptionArgs{
    									MinCandidateNodesPercentage: 10,
    									MinCandidateNodesAbsolute:   100,
    								},
    							},
    							{
    								Name: "NodeAffinity",
    								Args: &kubeschedulerconfig.NodeAffinityArgs{},
    							},
    							{
    								Name: "NodeResourcesBalancedAllocation",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 30.3K bytes
    - Viewed (0)
  10. pkg/scheduler/apis/config/testing/defaults/defaults.go

    // PluginConfigsV1 default plugin configurations.
    var PluginConfigsV1 = []config.PluginConfig{
    	{
    		Name: "DefaultPreemption",
    		Args: &config.DefaultPreemptionArgs{
    			MinCandidateNodesPercentage: 10,
    			MinCandidateNodesAbsolute:   100,
    		},
    	},
    	{
    		Name: "InterPodAffinity",
    		Args: &config.InterPodAffinityArgs{
    			HardPodAffinityWeight: 1,
    		},
    	},
    	{
    		Name: "NodeAffinity",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top