[
https://issues.apache.org/jira/browse/YARN-6195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15922897#comment-15922897
]
Benson Qiu commented on YARN-6195:
----------------------------------
[~leftnoteasy], [~sunilg]]: Here's the approach I have right now, based on
[~jlowe]'s comments. Would appreciate any thoughts.
{code:title=CSQueueUtils#updateUsedCapacity|borderStyle=solid}
Set<String> nodeLabels = childQueue.getNodeLabelsForQueue();
// {some code omitted}
// QueueMetrics does not support per-label capacities,
// so we report the maximum across all labels.
for (String nodeLabel : nodeLabels) {
usedCapacity =
Math.max(queueCapacities.getUsedCapacity(nodeLabel), usedCapacity);
absoluteUsedCapacity =
Math.max(queueCapacities.getAbsoluteUsedCapacity(nodeLabel),
absoluteUsedCapacity);
}
queueMetrics.setUsedCapacity(usedCapacity);
queueMetrics.setAbsoluteUsedCapacity(absoluteUsedCapacity);
{code}
> Export UsedCapacity and AbsoluteUsedCapacity to JMX
> ---------------------------------------------------
>
> Key: YARN-6195
> URL: https://issues.apache.org/jira/browse/YARN-6195
> Project: Hadoop YARN
> Issue Type: Improvement
> Components: capacityscheduler, metrics, yarn
> Affects Versions: 3.0.0-alpha3
> Reporter: Benson Qiu
> Assignee: Benson Qiu
> Attachments: YARN-6195.001.patch, YARN-6195.002.patch
>
>
> `usedCapacity` and `absoluteUsedCapacity` are currently not available as JMX.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]