| Package | Description | 
|---|---|
| org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair | |
| org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.policies | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | FSAppAttemptRepresents an application attempt from the viewpoint of the Fair Scheduler. | 
| class  | FSLeafQueue | 
| class  | FSParentQueue | 
| class  | FSQueue | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Comparator<Schedulable> | SchedulingPolicy. getComparator()The comparator returned by this method is to be used for sorting the
  Schedulables in that queue. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | SchedulingPolicy. computeShares(Collection<? extends Schedulable> schedulables,
             org.apache.hadoop.yarn.api.records.Resource totalResources)Computes and updates the shares of  Schedulables as per
 theSchedulingPolicy, to be used later for scheduling decisions. | 
| Modifier and Type | Method and Description | 
|---|---|
| Comparator<Schedulable> | FairSharePolicy. getComparator() | 
| Comparator<Schedulable> | DominantResourceFairnessPolicy. getComparator() | 
| Comparator<Schedulable> | FifoPolicy. getComparator() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected int | DominantResourceFairnessPolicy.DominantResourceFairnessComparator. compareAttribrutes(Schedulable s1,
                  Schedulable s2)This method is used when apps are tied in fairness ratio. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | FairSharePolicy. computeShares(Collection<? extends Schedulable> schedulables,
             org.apache.hadoop.yarn.api.records.Resource totalResources) | 
| void | DominantResourceFairnessPolicy. computeShares(Collection<? extends Schedulable> schedulables,
             org.apache.hadoop.yarn.api.records.Resource totalResources) | 
| void | FifoPolicy. computeShares(Collection<? extends Schedulable> schedulables,
             org.apache.hadoop.yarn.api.records.Resource totalResources) | 
| static void | ComputeFairShares. computeShares(Collection<? extends Schedulable> schedulables,
             org.apache.hadoop.yarn.api.records.Resource totalResources,
             String type)Compute fair share of the given schedulables.Fair share is an allocation of
 shares considering only active schedulables ie schedulables which have
 running apps. | 
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.