public final class ComputeFairShares extends Object
Schedulable's fair
 share is Resource it is entitled to, independent of the current
 demands and allocations on the cluster. A Schedulable whose resource
 consumption lies at or below its fair share will never have its containers
 preempted.| Modifier and Type | Method and Description | 
|---|---|
| static void | 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. | 
| static void | computeSteadyShares(Collection<? extends FSQueue> queues,
                   org.apache.hadoop.yarn.api.records.Resource totalResources,
                   String type)Compute the steady fair share of the given queues. | 
public static void computeShares(Collection<? extends Schedulable> schedulables, org.apache.hadoop.yarn.api.records.Resource totalResources, String type)
schedulables - totalResources - type - public static void computeSteadyShares(Collection<? extends FSQueue> queues, org.apache.hadoop.yarn.api.records.Resource totalResources, String type)
queues - totalResources - type - Copyright © 2008–2023 Apache Software Foundation. All rights reserved.