Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for minCandidateNodesPercentage (0.39 sec)

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

    // minCandidateNodesPercentage is within the allowed range.
    func validateMinCandidateNodesPercentage(minCandidateNodesPercentage int32, p *field.Path) *field.Error {
    	if minCandidateNodesPercentage < 0 || minCandidateNodesPercentage > 100 {
    		return field.Invalid(p, minCandidateNodesPercentage, "not in valid range [0, 100]")
    	}
    	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

    					Field: "minCandidateNodesPercentage",
    				},
    			},
    		},
    		"minCandidateNodesPercentage over 100": {
    			args: config.DefaultPreemptionArgs{
    				MinCandidateNodesPercentage: 900,
    				MinCandidateNodesAbsolute:   100,
    			},
    			wantErrs: field.ErrorList{
    				&field.Error{
    					Type:  field.ErrorTypeInvalid,
    					Field: "minCandidateNodesPercentage",
    				},
    			},
    		},
    		"negative minCandidateNodesAbsolute": {
    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/validation/validation_test.go

    				},
    				Score: config.PluginSet{
    					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)
  4. pkg/scheduler/apis/config/scheme/scheme_test.go

          kind: DefaultPreemptionArgs
          minCandidateNodesPercentage: 50
    `),
    			wantProfiles: []config.KubeSchedulerProfile{
    				{
    					SchedulerName: "default-scheduler",
    					Plugins:       defaults.PluginsV1,
    					PluginConfig: []config.PluginConfig{
    						{
    							Name: "DefaultPreemption",
    							Args: &config.DefaultPreemptionArgs{MinCandidateNodesPercentage: 50, MinCandidateNodesAbsolute: 100},
    						},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  5. pkg/scheduler/apis/config/types_pluginargs.go

    // DefaultPreemption plugin.
    type DefaultPreemptionArgs struct {
    	metav1.TypeMeta
    
    	// MinCandidateNodesPercentage is the minimum number of candidates to
    	// shortlist when dry running preemption as a percentage of number of nodes.
    	// Must be in the range [0, 100]. Defaults to 10% of the cluster size if
    	// unspecified.
    	MinCandidateNodesPercentage int32
    	// MinCandidateNodesAbsolute is the absolute minimum number of candidates to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 13 23:15:53 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. pkg/scheduler/apis/config/v1/defaults_test.go

    			want: &configv1.DefaultPreemptionArgs{
    				MinCandidateNodesPercentage: ptr.To[int32](10),
    				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),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:03:04 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  7. pkg/scheduler/apis/config/v1/defaults.go

    		obj.EnableContentionProfiling = ptr.To(true)
    	}
    }
    
    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)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  8. cmd/kube-scheduler/app/options/options_test.go

    									ContentType: "application/json",
    								},
    							},
    							{
    								Name: "DefaultPreemption",
    								Args: &kubeschedulerconfig.DefaultPreemptionArgs{
    									MinCandidateNodesPercentage: 10,
    									MinCandidateNodesAbsolute:   100,
    								},
    							},
    							{
    								Name: "NodeAffinity",
    								Args: &kubeschedulerconfig.NodeAffinityArgs{},
    							},
    							{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 30.3K bytes
    - Viewed (0)
  9. 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,
    		},
    	},
    	{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go

    // method must produce from dry running based on the constraints given by
    // <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
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 25 19:36:04 UTC 2023
    - 12.7K bytes
    - Viewed (0)
Back to top