| Package | Description |
|---|---|
| org.apache.hadoop.yarn.server.resourcemanager.resource | |
| org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.policies |
| Modifier and Type | Method and Description |
|---|---|
static ResourceType |
ResourceType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourceType[] |
ResourceType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
float |
ResourceWeights.getWeight(ResourceType resourceType) |
void |
ResourceWeights.setWeight(ResourceType resourceType,
float weight) |
| Modifier and Type | Method and Description |
|---|---|
static void |
ComputeFairShares.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 |
ComputeFairShares.computeSteadyShares(Collection<? extends FSQueue> queues,
org.apache.hadoop.yarn.api.records.Resource totalResources,
ResourceType type)
Compute the steady fair share of the given queues.
|
Copyright © 2022 Apache Software Foundation. All rights reserved.