Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for LeastAllocated (0.29 sec)

  1. pkg/scheduler/apis/config/scheme/scheme_test.go

    						},
    						{
    							Name: "NodeResourcesFit",
    							Args: &config.NodeResourcesFitArgs{
    								IgnoredResources: []string{"foo"},
    								ScoringStrategy: &config.ScoringStrategy{
    									Type: config.LeastAllocated,
    									Resources: []config.ResourceSpec{
    										{Name: "cpu", Weight: 1},
    										{Name: "memory", Weight: 1},
    									},
    								},
    							},
    						},
    						{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  2. pkg/scheduler/apis/config/types_pluginargs.go

    }
    
    // ScoringStrategyType the type of scoring strategy used in NodeResourcesFit plugin.
    type ScoringStrategyType string
    
    const (
    	// LeastAllocated strategy prioritizes nodes with least allocated resources.
    	LeastAllocated ScoringStrategyType = "LeastAllocated"
    	// MostAllocated strategy prioritizes nodes with most allocated resources.
    	MostAllocated ScoringStrategyType = "MostAllocated"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 13 23:15:53 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    				},
    			},
    		},
    		{
    			name: "LeastAllocated with defaultResources",
    			nodeResourcesFitArgs: config.NodeResourcesFitArgs{
    				ScoringStrategy: &config.ScoringStrategy{
    					Type:      config.LeastAllocated,
    					Resources: defaultResources,
    				},
    			},
    		},
    		{
    			name: "LeastAllocated with 10 resources",
    			nodeResourcesFitArgs: config.NodeResourcesFitArgs{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
  4. pkg/scheduler/apis/config/v1/defaults_test.go

    			TypeMeta: metav1.TypeMeta{
    				Kind:       "NodeResourcesFitArgs",
    				APIVersion: "kubescheduler.config.k8s.io/v1",
    			},
    			ScoringStrategy: &configv1.ScoringStrategy{
    				Type:      configv1.LeastAllocated,
    				Resources: []configv1.ResourceSpec{{Name: "cpu", Weight: 1}, {Name: "memory", Weight: 1}},
    			},
    		}},
    	},
    	{
    		Name: "PodTopologySpread",
    		Args: runtime.RawExtension{Object: &configv1.PodTopologySpreadArgs{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:03:04 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  5. cmd/kube-scheduler/app/options/options_test.go

    							},
    							{
    								Name: "NodeResourcesFit",
    								Args: &kubeschedulerconfig.NodeResourcesFitArgs{
    									ScoringStrategy: &kubeschedulerconfig.ScoringStrategy{
    										Type:      kubeschedulerconfig.LeastAllocated,
    										Resources: []kubeschedulerconfig.ResourceSpec{{Name: "cpu", Weight: 1}, {Name: "memory", Weight: 1}},
    									},
    								},
    							},
    							{
    								Name: "PodTopologySpread",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 30.3K bytes
    - Viewed (0)
  6. pkg/scheduler/apis/config/testing/defaults/defaults.go

    		},
    	},
    	{
    		Name: "NodeResourcesFit",
    		Args: &config.NodeResourcesFitArgs{
    			ScoringStrategy: &config.ScoringStrategy{
    				Type:      config.LeastAllocated,
    				Resources: []config.ResourceSpec{{Name: "cpu", Weight: 1}, {Name: "memory", Weight: 1}},
    			},
    		},
    	},
    	{
    		Name: "PodTopologySpread",
    		Args: &config.PodTopologySpreadArgs{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. pkg/scheduler/apis/config/v1/defaults.go

    }
    
    func SetDefaults_NodeResourcesFitArgs(obj *configv1.NodeResourcesFitArgs) {
    	if obj.ScoringStrategy == nil {
    		obj.ScoringStrategy = &configv1.ScoringStrategy{
    			Type:      configv1.ScoringStrategyType(config.LeastAllocated),
    			Resources: defaultResourceSpec,
    		}
    	}
    	if len(obj.ScoringStrategy.Resources) == 0 {
    		// If no resources specified, use the default set.
    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. pkg/scheduler/apis/config/validation/validation_pluginargs_test.go

    				t.Errorf("ValidateVolumeBindingArgs returned err (-want,+got):\n%s", diff)
    			}
    		})
    	}
    }
    
    func TestValidateFitArgs(t *testing.T) {
    	defaultScoringStrategy := &config.ScoringStrategy{
    		Type: config.LeastAllocated,
    		Resources: []config.ResourceSpec{
    			{Name: "cpu", Weight: 1},
    			{Name: "memory", Weight: 1},
    		},
    	}
    	argsTest := []struct {
    		name   string
    		args   config.NodeResourcesFitArgs
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/noderesources/fit.go

    var nodeResourceStrategyTypeMap = map[config.ScoringStrategyType]scorer{
    	config.LeastAllocated: func(args *config.NodeResourcesFitArgs) *resourceAllocationScorer {
    		resources := args.ScoringStrategy.Resources
    		return &resourceAllocationScorer{
    			Name:      string(config.LeastAllocated),
    			scorer:    leastResourceScorer(resources),
    			resources: resources,
    		}
    	},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  10. pkg/scheduler/apis/config/validation/validation_pluginargs.go

    	"k8s.io/kubernetes/pkg/scheduler/apis/config"
    )
    
    // supportedScoringStrategyTypes has to be a set of strings for use with field.Unsupported
    var supportedScoringStrategyTypes = sets.New(
    	string(config.LeastAllocated),
    	string(config.MostAllocated),
    	string(config.RequestedToCapacityRatio),
    )
    
    // ValidateDefaultPreemptionArgs validates that DefaultPreemptionArgs are correct.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 09:29:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
Back to top