- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for LeastAllocated (0.24 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
pkg/scheduler/framework/plugins/noderesources/least_allocated_test.go
p, err := NewFit( ctx, &config.NodeResourcesFitArgs{ ScoringStrategy: &config.ScoringStrategy{ Type: config.LeastAllocated, Resources: test.resources, }, }, fh, plfeature.Features{}) if diff := cmp.Diff(test.wantErrs.ToAggregate(), err, ignoreBadValueDetail); diff != "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 18.8K bytes - Viewed (0)