Class FifoCandidatesSelector
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.PreemptionCandidatesSelector
org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.FifoCandidatesSelector
-
Field Summary
Fields inherited from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.PreemptionCandidatesSelector
preemptionContext, rc -
Method Summary
Modifier and TypeMethodDescriptionbooleanMap<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 totalPreemptionAllowed) Get preemption candidates from computed resource sharing and already selected candidates.Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.PreemptionCandidatesSelector
getMaximumKillWaitTimeMs, setMaximumKillWaitTime
-
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 totalPreemptionAllowed) Description copied from class:PreemptionCandidatesSelectorGet preemption candidates from computed resource sharing and already selected candidates.- Specified by:
selectCandidatesin classPreemptionCandidatesSelector- Parameters:
selectedCandidates- already selected candidates from previous policiesclusterResource- total resourcetotalPreemptionAllowed- how many resources allowed to be preempted in this round. Should be updated(in-place set) after the call- Returns:
- merged selected candidates.
-
getAllowQueuesBalanceAfterAllQueuesSatisfied
public boolean getAllowQueuesBalanceAfterAllQueuesSatisfied()
-