- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for LeastAllocated (0.4 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/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) -
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/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) -
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) -
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/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) -
pkg/generated/openapi/zz_generated.openapi.go
}, }, }, "scoringStrategy": { SchemaProps: spec.SchemaProps{ Description: "ScoringStrategy selects the node resource scoring strategy. The default strategy is LeastAllocated with an equal \"cpu\" and \"memory\" weight.", Ref: ref("k8s.io/kube-scheduler/config/v1.ScoringStrategy"), }, }, }, }, }, Dependencies: []string{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 18:37:07 UTC 2024 - 3M bytes - Viewed (0)