public final class ComputeFairShares
extends java.lang.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 | Description |
|---|---|---|
static void |
computeShares(java.util.Collection<? extends Schedulable> schedulables,
org.apache.hadoop.yarn.api.records.Resource totalResources,
java.lang.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(java.util.Collection<? extends FSQueue> queues,
org.apache.hadoop.yarn.api.records.Resource totalResources,
java.lang.String type) |
Compute the steady fair share of the given queues.
|
public static void computeShares(java.util.Collection<? extends Schedulable> schedulables, org.apache.hadoop.yarn.api.records.Resource totalResources, java.lang.String type)
schedulables - given schedulables.totalResources - totalResources.type - type of the resource.public static void computeSteadyShares(java.util.Collection<? extends FSQueue> queues, org.apache.hadoop.yarn.api.records.Resource totalResources, java.lang.String type)
queues - FSQueues whose shares are to be updated.totalResources - totalResources.type - type of the resource.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.