Class CSQueueMetrics
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CSQueueMetrics
- All Implemented Interfaces:
org.apache.hadoop.metrics2.MetricsSource
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics
conf, DEFAULT_PARTITION, DEFAULT_PARTITION_JMX_STR, METRIC_NAME_DELIMITER, metricsSystem, P_RECORD_INFO, PARTITION_INFO, QUEUE_INFO, queueName, registry, storedPartitionMetrics, USER_INFO, users -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidstatic CSQueueMetricsforQueue(String queueName, Queue parent, boolean enableUserMetrics, org.apache.hadoop.conf.Configuration conf) floatlonglongfloatfloatlongintfloatfloatlongintlonglongfloatgetUserMetrics(String userName) voidprotected voidRegister all custom resources metrics as part of initialization.voidsetAbsoluteUsedCapacity(String partition, Float absoluteUsedCap) voidsetAMResouceLimit(String partition, org.apache.hadoop.yarn.api.records.Resource res) voidsetAMResouceLimitForUser(String partition, String user, org.apache.hadoop.yarn.api.records.Resource res) voidsetGuaranteedCapacities(String partition, float capacity, float absoluteCapacity) voidsetGuaranteedResources(String partition, org.apache.hadoop.yarn.api.records.Resource res) voidsetMaxCapacities(String partition, float capacity, float absoluteCapacity) voidsetMaxCapacityResources(String partition, org.apache.hadoop.yarn.api.records.Resource res) voidsetUsedCapacity(String partition, float usedCap) Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics
activateApp, addAppAttemptFirstContainerAllocationDelay, allocateResources, allocateResources, clearQueueMetrics, deactivateApp, decrActiveUsers, decrPendingResources, decrReserveResource, fillInValuesFromAvailableResources, finishApp, finishAppAttempt, forQueue, getActiveApps, getActiveUsers, getAggegatedReleasedContainers, getAggregateAllocatedContainers, getAggregatedPreemptedSecondsResources, getAggregateMemoryMBPreempted, getAggregateMemoryMBSecondsPreempted, getAggregateNodeLocalContainersAllocated, getAggregateOffSwitchContainersAllocated, getAggregatePreemptedContainers, getAggregateRackLocalContainersAllocated, getAggregateVcoreSecondsPreempted, getAggregateVcoresPreempted, getAllocatedContainers, getAllocatedMB, getAllocatedResources, getAllocatedVirtualCores, getAppsCompleted, getAppsFailed, getAppsKilled, getAppsPending, getAppsRunning, getAppsSubmitted, getAvailableMB, getAvailableResources, getAvailableVirtualCores, getMetrics, getMetricsSystem, getParentQueue, getPartitionQueueMetrics, getPendingContainers, getPendingMB, getPendingResources, getPendingVirtualCores, getQueueMetrics, getQueueMetricsForCustomResources, getReservedContainers, getReservedMB, getReservedResources, getReservedVirtualCores, getUnmanagedAppsCompleted, getUnmanagedAppsFailed, getUnmanagedAppsPending, getUnmanagedAppsRunning, getUnmanagedAppsSubmitted, incrActiveUsers, incrNodeTypeAggregations, incrPendingResources, incrReserveResources, internalAllocateResources, internalDecrPendingResources, internalIncrPendingResources, internalReleaseResources, internalReserveResources, internalUnReserveResources, isConfigurationValidationSet, moveAppFrom, moveAppTo, preemptContainer, registerPartitionMetricsCreation, releaseResources, reserveResource, runAppAttempt, setAvailableResources, setAvailableResourcesToQueue, setAvailableResourcesToQueue, setAvailableResourcesToUser, setConfigurationValidation, setParent, setParentQueue, setQueueMetricsForCustomResources, sourceName, submitApp, submitAppAttempt, tag, unreserveResource, updatePreemptedForCustomResources, updatePreemptedMemoryMBSeconds, updatePreemptedResources, updatePreemptedSecondsForCustomResources, updatePreemptedVcoreSeconds
-
Method Details
-
registerCustomResources
protected void registerCustomResources()Register all custom resources metrics as part of initialization. As and when this metric object construction happens for any queue, all custom resource metrics value would be initialized with '0' like any other mandatory resources metrics- Overrides:
registerCustomResourcesin classQueueMetrics
-
getAMResourceLimitMB
public long getAMResourceLimitMB() -
getAMResourceLimitVCores
public long getAMResourceLimitVCores() -
getUsedAMResourceMB
public long getUsedAMResourceMB() -
getUsedAMResourceVCores
public long getUsedAMResourceVCores() -
setAMResouceLimit
-
setAMResouceLimitForUser
-
incAMUsed
-
decAMUsed
-
getUsedCapacity
public float getUsedCapacity() -
setUsedCapacity
-
getAbsoluteUsedCapacity
public float getAbsoluteUsedCapacity() -
setAbsoluteUsedCapacity
-
getGuaranteedMB
public long getGuaranteedMB() -
getGuaranteedVCores
public int getGuaranteedVCores() -
setGuaranteedResources
public void setGuaranteedResources(String partition, org.apache.hadoop.yarn.api.records.Resource res) -
getMaxCapacityMB
public long getMaxCapacityMB() -
getMaxCapacityVCores
public int getMaxCapacityVCores() -
setMaxCapacityResources
public void setMaxCapacityResources(String partition, org.apache.hadoop.yarn.api.records.Resource res) -
createQueueMetricsForCustomResources
protected void createQueueMetricsForCustomResources()- Overrides:
createQueueMetricsForCustomResourcesin classQueueMetrics
-
forQueue
public static CSQueueMetrics forQueue(String queueName, Queue parent, boolean enableUserMetrics, org.apache.hadoop.conf.Configuration conf) -
getUserMetrics
- Overrides:
getUserMetricsin classQueueMetrics
-
getGuaranteedCapacity
public float getGuaranteedCapacity() -
getGuaranteedAbsoluteCapacity
public float getGuaranteedAbsoluteCapacity() -
setGuaranteedCapacities
-
getMaxCapacity
public float getMaxCapacity() -
getMaxAbsoluteCapacity
public float getMaxAbsoluteCapacity() -
setMaxCapacities
-