public class ReservedContainerCandidatesSelector 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 totalPreemptedResourceAllowed)
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 totalPreemptedResourceAllowed)
PreemptionCandidatesSelectorselectCandidates in class PreemptionCandidatesSelectorselectedCandidates - already selected candidates from previous policiesclusterResource - total resourcetotalPreemptedResourceAllowed - how many resources allowed to be
preempted in this roundCopyright © 2017 Apache Software Foundation. All Rights Reserved.