Class IntraQueueCandidatesSelector

java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.PreemptionCandidatesSelector
org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.IntraQueueCandidatesSelector

public class IntraQueueCandidatesSelector extends PreemptionCandidatesSelector
Identifies over utilized resources within a queue and tries to normalize them to resolve resource allocation anomalies w.r.t priority and user-limit.
  • Method Details

    • selectCandidates

      public Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,Set<RMContainer>> selectCandidates(Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,Set<RMContainer>> selectedCandidates, org.apache.hadoop.yarn.api.records.Resource clusterResource, org.apache.hadoop.yarn.api.records.Resource totalPreemptedResourceAllowed)
      Description copied from class: PreemptionCandidatesSelector
      Get preemption candidates from computed resource sharing and already selected candidates.
      Specified by:
      selectCandidates in class PreemptionCandidatesSelector
      Parameters:
      selectedCandidates - already selected candidates from previous policies
      clusterResource - total resource
      totalPreemptedResourceAllowed - how many resources allowed to be preempted in this round. Should be updated(in-place set) after the call
      Returns:
      merged selected candidates.