ferdelyi commented on code in PR #7324:
URL: https://github.com/apache/hadoop/pull/7324#discussion_r1932624788
##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/components/yarn-queue-partition-capacity-labels.hbs:
##########
@@ -16,59 +16,255 @@
* limitations under the License.
}}
-<div class="top-1">
- <span class="yarn-label primary">
- <span class="label-key">absolute used</span>
+<h4>Queue Status for Partition</h4>
+{{!
+/scheduler/schedulerInfo/queues/queue[2]/resources/resourceUsagesByPartition/used/memory[text()='2048']
+/scheduler/schedulerInfo/queues/queue[2]/resources/resourceUsagesByPartition/used/vCores[text()='2']
+/scheduler/schedulerInfo/queues/queue[2]/capacities/queueCapacitiesByPartition/usedCapacity[text()='37.883835']
+}}
+<ul>
+ <li class="queues-list">
+ <span class="label-key" title=" Aka. 'Used Resources': is the total of the
resources consumed within the queue for the given partition <memory MB, vCores,
%>.
+ The percentage value calculated differently for the
DefaultResourceCalculator and for the DominantResourceCalculator."><b>used
capacity:</b></span>
+ <span class="label-value"><memory:{{data.used.memory}},
vCores:{{data.used.vCores}}> (<b>{{data.usedCapacity}}%</b>)</span>
+ </li>
+
+
+ <li class="yarn-list">
+ <span class="label-key" title="Absolute Used Capacity: percentage
referring to the used memory from the total available memory for the
partition">absolute used:</span>
<span class="label-value">{{data.absoluteUsedCapacity}}%</span>
- </span>
- <span class="yarn-label primary">
- <span class="label-key">absolute capacity</span>
+ </li>
+
+ {{!
+
/scheduler/schedulerInfo/queues/queue[2]/capacities/queueCapacitiesByPartition[2]/absoluteCapacity[text()='85.44922']
+ }}
+ <li class="yarn-list">
+ <span class="label-key" title="Absolute Configured Capacity: percentage
referring to the configured memory from the total available memory for the
partition. This value will be different from the configured capacity only when
the parent queue is not the root queue.">absolute configured capacity:</span>
<span class="label-value">{{data.absoluteCapacity}}%</span>
- </span>
- <span class="yarn-label secondary">
- <span class="label-key">absolute max capacity</span>
+ </li>
+ {{!
+ /scheduler/schedulerInfo/queues/queue[2]/absoluteMaxCapacity[text()='100.0']
+ }}
+ <li class="yarn-list">
+ <span class="label-key" title="Absolute Configured Max Capacity:
percentage referring to the configured maximum memory from the total available
memory for the partition. This value will be different from the configured max
capacity only when the parent queue is not the root queue.">absolute configured
max capacity:</span>
<span class="label-value">{{data.absoluteMaxCapacity}}%</span>
- </span>
-</div>
-{{#if data.isWeightMode}}
-<div class="top-1">
- <span class="yarn-label secondary">
- <span class="label-key">weight</span>
- <span class="label-value">{{data.weight}}</span>
- </span>
- <span class="yarn-label secondary">
- <span class="label-key">normalized weight</span>
- <span class="label-value">{{data.normalizedWeight}}</span>
- </span>
-</div>
-{{else}}
-<div class="top-1">
- <span class="yarn-label secondary">
- <span class="label-key">configured capacity</span>
- <span class="label-value">{{data.capacity}}%</span>
- </span>
- <span class="yarn-label secondary">
- <span class="label-key">configured max capacity</span>
- <span class="label-value">{{data.maxCapacity}}%</span>
- </span>
-</div>
-{{/if}}
+ </li>
+
+
+ {{#if data.isWeightMode}}
+
+ <li class="yarn-list">
+ <span class="label-key" title="Configured Weight">weight:</span>
+ <span class="label-value">{{data.weight}}</span>
+ </li>
+ <li class="yarn-list">
+ <span class="label-key" title="Normalized Weight">normalized
weight:</span>
+ <span class="label-value">{{data.normalizedWeight}}</span>
+ </li>
+
+ {{else}}
+
+ {{!
/scheduler/schedulerInfo/queues/queue[2]/capacities/queueCapacitiesByPartition[2]/capacity[text()='85.44922']
+ TODO: is it any different from the data.absoluteCapacity and when?
+ }}
+ <li class="yarn-list">
+ <span class="label-key" title="Configured Capacity: percentage =
'configured memory of the queue' / 'total available memory for the partition' *
100">configured capacity:</span>
+ <span class="label-value">{{data.capacity}}%</span>
+ </li>
+
+ {{! /scheduler/schedulerInfo/queues/queue[2]/maxCapacity[text()='100.0']
+ TODO: is it any different from the data.absoluteMaxCapacity and when?
+ }}
+ <li class="yarn-list">
+ <span class="label-key" title="Configured Max Capacity: percentage =
'configured maximum memory of the queue' / 'total available memory for the
partition' * 100">configured max capacity:</span>
+ <span class="label-value">{{data.maxCapacity}}%</span>
+ </li>
+
+ {{!
+
/scheduler/schedulerInfo/queues/queue[2]/capacities/queueCapacitiesByPartition/configuredMinResource/memory[text()='54060']
+
/scheduler/schedulerInfo/queues/queue[2]/capacities/queueCapacitiesByPartition/configuredMinResource/vCores[text()='5']
+ }}
+ <li class="yarn-list">
+ <span class="label-key" title="[memory MB, vCores]">configured min
capacity:</span>
+ <span
class="label-value"><memory:{{data.configuredMinResource.memory}},
vCores:{{data.configuredMaxResource.vCores}}></span>
Review Comment:
Spot on observation @K0K0V0K . Thank you for looking into it. Instead of the
<memory, vcore> format, I've created a list of resources, so it will fit to the
available space and grow vertically instead of trying to grow horizontally.
Please see the screenshot also uploaded to this PR and to the Jira.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]