Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SelectVictimsOnNode (0.19 sec)

  1. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go

    	for _, c := range candidates {
    		m[c.Name()] = c.Victims()
    	}
    	return m
    }
    
    // SelectVictimsOnNode finds minimum set of pods on the given node that should be preempted in order to make enough room
    // for "pod" to be scheduled.
    func (pl *DefaultPreemption) SelectVictimsOnNode(
    	ctx context.Context,
    	state *framework.CycleState,
    	pod *v1.Pod,
    	nodeInfo *framework.NodeInfo,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 25 19:36:04 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/preemption/preemption_test.go

    		v1.ResourceCPU:    "500m",
    		v1.ResourceMemory: "500",
    	}
    )
    
    type FakePostFilterPlugin struct {
    	numViolatingVictim int
    }
    
    func (pl *FakePostFilterPlugin) SelectVictimsOnNode(
    	ctx context.Context, state *framework.CycleState, pod *v1.Pod,
    	nodeInfo *framework.NodeInfo, pdbs []*policy.PodDisruptionBudget) (victims []*v1.Pod, numViolatingVictim int, status *framework.Status) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/preemption/preemption.go

    	PodEligibleToPreemptOthers(pod *v1.Pod, nominatedNodeStatus *framework.Status) (bool, string)
    	// SelectVictimsOnNode finds minimum set of pods on the given node that should be preempted in order to make enough room
    	// for "pod" to be scheduled.
    	// Note that both `state` and `nodeInfo` are deep copied.
    	SelectVictimsOnNode(ctx context.Context, state *framework.CycleState,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/runtime/framework.go

    // and equal priority pods nominated to run on the node.
    // When it is called from Preempt, we should remove the victims of preemption
    // and add the nominated pods. Removal of the victims is done by
    // SelectVictimsOnNode(). Preempt removes victims from PreFilter state and
    // NodeInfo before calling this function.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 60.9K bytes
    - Viewed (0)
Back to top