Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 244 for allocable (0.21 sec)

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

    func mostResourceScorer(resources []config.ResourceSpec) func(requested, allocable []int64) int64 {
    	return func(requested, allocable []int64) int64 {
    		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
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 21 15:23:47 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/noderesources/requested_to_capacity_ratio.go

    		}
    
    		return rawScoringFunction(requested * maxUtilization / capacity)
    	}
    	return func(requested, allocable []int64) int64 {
    		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
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 21 15:23:47 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/noderesources/least_allocated.go

    func leastResourceScorer(resources []config.ResourceSpec) func([]int64, []int64) int64 {
    	return func(requested, allocable []int64) int64 {
    		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 {
    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/balanced_allocation.go

    			resources:    args.Resources,
    		},
    	}, nil
    }
    
    func balancedResourceScorer(requested, allocable []int64) int64 {
    	var resourceToFractions []float64
    	var totalFraction float64
    	for i := range requested {
    		if allocable[i] == 0 {
    			continue
    		}
    		fraction := float64(requested[i]) / float64(allocable[i])
    		if fraction > 1 {
    			fraction = 1
    		}
    		totalFraction += fraction
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/noderesources/resource_allocation.go

    	case v1.ResourceCPU:
    		return nodeInfo.Allocatable.MilliCPU, (requested.MilliCPU + podRequest)
    	case v1.ResourceMemory:
    		return nodeInfo.Allocatable.Memory, (requested.Memory + podRequest)
    	case v1.ResourceEphemeralStorage:
    		return nodeInfo.Allocatable.EphemeralStorage, (nodeInfo.Requested.EphemeralStorage + podRequest)
    	default:
    		if _, exists := nodeInfo.Allocatable.ScalarResources[resource]; exists {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 20 14:53:43 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/memorymanager/fake_memory_manager.go

    }
    
    func (m *fakeManager) State() state.Reader {
    	return m.state
    }
    
    // GetAllocatableMemory returns the amount of allocatable memory for each NUMA node
    func (m *fakeManager) GetAllocatableMemory() []state.Block {
    	klog.InfoS("Get Allocatable Memory")
    	return []state.Block{}
    }
    
    // GetMemory returns the memory allocated by a container from NUMA nodes
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/memorymanager/policy.go

    // Type defines the policy type
    type policyType string
    
    // Policy implements logic for pod container to a memory assignment.
    type Policy interface {
    	Name() string
    	Start(s state.State) error
    	// Allocate call is idempotent
    	Allocate(s state.State, pod *v1.Pod, container *v1.Container) error
    	// RemoveContainer call is idempotent
    	RemoveContainer(s state.State, podUID string, containerName string)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 05 17:52:25 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/memorymanager/policy_none.go

    func NewPolicyNone() Policy {
    	return &none{}
    }
    
    func (p *none) Name() string {
    	return string(policyTypeNone)
    }
    
    func (p *none) Start(s state.State) error {
    	return nil
    }
    
    // Allocate call is idempotent
    func (p *none) Allocate(s state.State, pod *v1.Pod, container *v1.Container) error {
    	return nil
    }
    
    // RemoveContainer call is idempotent
    func (p *none) RemoveContainer(s state.State, podUID string, containerName string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 05 17:52:25 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  9. releasenotes/notes/auto-allocate-dns.yaml

    John Howard <******@****.***> 1607394502 -0800
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 08 02:28:22 UTC 2020
    - 325 bytes
    - Viewed (0)
  10. pkg/kubelet/cm/cpumanager/fake_cpu_manager.go

    	klog.InfoS("Start()")
    	return nil
    }
    
    func (m *fakeManager) Policy() Policy {
    	klog.InfoS("Policy()")
    	pol, _ := NewNonePolicy(nil)
    	return pol
    }
    
    func (m *fakeManager) Allocate(pod *v1.Pod, container *v1.Container) error {
    	klog.InfoS("Allocate", "pod", klog.KObj(pod), "containerName", container.Name)
    	return nil
    }
    
    func (m *fakeManager) AddContainer(pod *v1.Pod, container *v1.Container, containerID string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top