Package | Description |
---|---|
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity |
Modifier and Type | Field and Description |
---|---|
protected Map<String,ResourceVector> |
ResourceCalculationDriver.batchRemainingResourcePerLabel |
protected Map<String,ResourceVector> |
ResourceCalculationDriver.normalizedResourceRatioPerLabel |
protected Map<String,ResourceVector> |
ResourceCalculationDriver.overallRemainingResourcePerLabel |
Modifier and Type | Method and Description |
---|---|
ResourceVector |
ResourceCalculationDriver.getBatchRemainingResource(String label)
Returns the remaining resources of a parent that is still available for its
children.
|
static ResourceVector |
ResourceVector.newInstance()
Creates a new
ResourceVector with all pre-defined resources set to
zero. |
static ResourceVector |
ResourceVector.of(double value)
Creates a new
ResourceVector with all pre-defined resources set to
the same value. |
static ResourceVector |
ResourceVector.of(org.apache.hadoop.yarn.api.records.Resource resource)
Creates a new
ResourceVector with the values set in a
Resource object. |
Modifier and Type | Method and Description |
---|---|
Map<String,ResourceVector> |
ResourceCalculationDriver.getNormalizedResourceRatios()
Returns the ratio of the summary of children absolute configured resources and the parent's
effective minimum resource.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceVector.decrement(ResourceVector otherResourceVector)
Decrements values for each resource defined in the given resource vector.
|
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.