public class FifoCandidatesSelector extends PreemptionCandidatesSelector
preemptionContext, rc
Modifier and Type | Method and Description |
---|---|
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)
Get preemption candidates from computed resource sharing and already
selected candidates.
|
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)
PreemptionCandidatesSelector
selectCandidates
in class PreemptionCandidatesSelector
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 callCopyright © 2020 Apache Software Foundation. All rights reserved.