YARN-10640. Adjust the queue Configured capacity to Configured weight number for weight mode in UI. Contributed by Qi Zhu.

This commit is contained in:
Peter Bacsko 2021-03-05 15:56:56 +01:00
parent 0774116756
commit e82e7c597a
1 changed files with 6 additions and 2 deletions

View File

@ -159,8 +159,12 @@ class CapacitySchedulerPage extends RmView {
__("Used Capacity:",
appendPercent(resourceUsages.getUsed(),
capacities.getUsedCapacity() / 100))
.__("Configured Capacity:",
capacities.getConfiguredMinResource() == null ?
.__(capacities.getWeight() != -1 ?
"Configured Weight:" :
"Configured Capacity:",
capacities.getWeight() != -1 ?
capacities.getWeight() :
capacities.getConfiguredMinResource() == null ?
Resources.none().toString() :
capacities.getConfiguredMinResource().toString())
.__("Configured Max Capacity:",