org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.policies
Class ComputeFairShares
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.policies.ComputeFairShares
public class ComputeFairShares
- extends Object
Contains logic for computing the fair shares. A 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.
|
Method Summary |
static void |
computeShares(Collection<? extends Schedulable> schedulables,
org.apache.hadoop.yarn.api.records.Resource totalResources,
ResourceType 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,
ResourceType type)
Compute the steady fair share of the given queues. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComputeFairShares
public ComputeFairShares()
computeShares
public static void computeShares(Collection<? extends Schedulable> schedulables,
org.apache.hadoop.yarn.api.records.Resource totalResources,
ResourceType 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.
- Parameters:
schedulables - totalResources - type -
computeSteadyShares
public static void computeSteadyShares(Collection<? extends FSQueue> queues,
org.apache.hadoop.yarn.api.records.Resource totalResources,
ResourceType type)
- Compute the steady fair share of the given queues. The steady fair
share is an allocation of shares considering all queues, i.e.,
active and inactive.
- Parameters:
queues - totalResources - type -
Copyright © 2014 Apache Software Foundation. All Rights Reserved.