- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for calculatePodResourceRequestList (0.7 sec)
-
pkg/scheduler/framework/plugins/noderesources/balanced_allocation.go
func (ba *BalancedAllocation) PreScore(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodes []*framework.NodeInfo) *framework.Status { state := &balancedAllocationPreScoreState{ podRequests: ba.calculatePodResourceRequestList(pod, ba.resources), } cycleState.Write(balancedAllocationPreScoreStateKey, state) return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 6.5K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/resource_allocation.go
quantity := requests[resourceName] if resourceName == v1.ResourceCPU { return quantity.MilliValue() } return quantity.Value() } func (r *resourceAllocationScorer) calculatePodResourceRequestList(pod *v1.Pod, resources []config.ResourceSpec) []int64 { podRequests := make([]int64, len(resources)) for i := range resources {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 20 14:53:43 UTC 2023 - 5.3K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/fit.go
func (f *Fit) PreScore(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodes []*framework.NodeInfo) *framework.Status { state := &preScoreState{ podRequests: f.calculatePodResourceRequestList(pod, f.resources), } cycleState.Write(preScoreStateKey, state) return nil } func getPreScoreState(cycleState *framework.CycleState) (*preScoreState, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 20.2K bytes - Viewed (0)