Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for resourceScore (0.16 sec)

  1. pkg/scheduler/framework/plugins/noderesources/requested_to_capacity_ratio.go

    		var nodeScore, weightSum int64
    		for i := range requested {
    			if allocable[i] == 0 {
    				continue
    			}
    			weight := resources[i].Weight
    			resourceScore := resourceScoringFunction(requested[i], allocable[i])
    			if resourceScore > 0 {
    				nodeScore += resourceScore * weight
    				weightSum += weight
    			}
    		}
    		if weightSum == 0 {
    			return 0
    		}
    		return int64(math.Round(float64(nodeScore) / float64(weightSum)))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 21 15:23:47 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/noderesources/most_allocated.go

    		var nodeScore, weightSum int64
    		for i := range requested {
    			if allocable[i] == 0 {
    				continue
    			}
    			weight := resources[i].Weight
    			resourceScore := mostRequestedScore(requested[i], allocable[i])
    			nodeScore += resourceScore * weight
    			weightSum += weight
    		}
    		if weightSum == 0 {
    			return 0
    		}
    		return nodeScore / weightSum
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 21 15:23:47 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/noderesources/least_allocated.go

    		var nodeScore, weightSum int64
    		for i := range requested {
    			if allocable[i] == 0 {
    				continue
    			}
    			weight := resources[i].Weight
    			resourceScore := leastRequestedScore(requested[i], allocable[i])
    			nodeScore += resourceScore * weight
    			weightSum += weight
    		}
    		if weightSum == 0 {
    			return 0
    		}
    		return nodeScore / weightSum
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 12 01:50:09 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/noderesources/resource_allocation.go

    			klog.KObj(pod), "node", klog.KObj(node), "resourceAllocationScorer", r.Name,
    			"allocatableResource", allocatable, "requestedResource", requested, "resourceScore", score,
    		)
    	}
    
    	return score, nil
    }
    
    // calculateResourceAllocatableRequest returns 2 parameters:
    // - 1st param: quantity of allocatable resource on the node.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 20 14:53:43 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  5. pkg/registry/apps/statefulset/storage/storage_test.go

    	validObj := &validStatefulSet
    	namespace := validObj.Namespace
    	name := validObj.Name
    	resourceStore := storage.StatefulSet.Store
    	scaleStore := storage.Scale
    
    	defer resourceStore.DestroyFunc()
    	ctx := genericapirequest.WithNamespace(genericapirequest.NewContext(), namespace)
    	if _, err := resourceStore.Create(ctx, validObj, rest.ValidateAllObjectFunc, &metav1.CreateOptions{}); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 14K bytes
    - Viewed (0)
  6. pkg/registry/core/replicationcontroller/storage/storage_test.go

    	storage, server := newStorage(t)
    	defer server.Terminate(t)
    	validObj := validController
    	resourceStore := storage.Controller.Store
    	scaleStore := storage.Scale
    
    	defer resourceStore.DestroyFunc()
    	ctx := genericapirequest.WithNamespace(genericapirequest.NewContext(), namespace)
    	if _, err := resourceStore.Create(ctx, validObj, rest.ValidateAllObjectFunc, &metav1.CreateOptions{}); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 16 06:57:01 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  7. pkg/apis/apidiscovery/types.go

    	// +listType=map
    	// +listMapKey=subresource
    	Subresources []APISubresourceDiscovery
    }
    
    // ResourceScope is an enum defining the different scopes available to a resource.
    type ResourceScope string
    
    const (
    	ScopeCluster   ResourceScope = "Cluster"
    	ScopeNamespace ResourceScope = "Namespaced"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 09 18:45:33 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/apidiscovery/v2/types.go

    	Subresources []APISubresourceDiscovery `json:"subresources,omitempty" protobuf:"bytes,8,rep,name=subresources"`
    }
    
    // ResourceScope is an enum defining the different scopes available to a resource.
    type ResourceScope string
    
    const (
    	ScopeCluster   ResourceScope = "Cluster"
    	ScopeNamespace ResourceScope = "Namespaced"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1/customresourcedefinitionspec.go

    	Names                 *CustomResourceDefinitionNamesApplyConfiguration    `json:"names,omitempty"`
    	Scope                 *apiextensionsv1.ResourceScope                      `json:"scope,omitempty"`
    	Versions              []CustomResourceDefinitionVersionApplyConfiguration `json:"versions,omitempty"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 28 12:38:10 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  10. pkg/registry/apps/replicaset/storage/storage_test.go

    	validObj := &validReplicaSet
    	namespace := validObj.Namespace
    	name := validObj.Name
    	resourceStore := storage.ReplicaSet.Store
    	scaleStore := storage.Scale
    
    	defer resourceStore.DestroyFunc()
    	ctx := genericapirequest.WithNamespace(genericapirequest.NewContext(), namespace)
    	if _, err := resourceStore.Create(ctx, validObj, rest.ValidateAllObjectFunc, &metav1.CreateOptions{}); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 17.7K bytes
    - Viewed (0)
Back to top