[
https://issues.apache.org/jira/browse/YUNIKORN-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17089605#comment-17089605
]
Kinga Marton commented on YUNIKORN-93:
--------------------------------------
I had a discussion today with [~wilfreds] related {{max capacity}} and with
this fix I will do some general cleanup/fix around this. We found the following
issues
* the hardcoded 20% for absolute used capacity needs to be removed (this was
the main purpose of this issue)
* make a difference between nil and 0 value when displaying it in the web UI
*
[queue_config.md|https://github.com/apache/incubator-yunikorn-core/blob/master/docs/queue_config.md]
has some typos in the last example (<resourcen name 1>: <0..maxint>)
* negative values does not have sense, so we need a validation for this. 0
value does have sense, since this means that the specified resource is not
available for the queue
* we have 2 similar methods defined for [getting queue infos and getting child
queue
infos|https://github.com/apache/incubator-yunikorn-core/blob/master/pkg/cache/partition_info.go#L725-L767],
it should be refactored into one method with a recursive call
* we should parse the info from the scheduler package instead of parsing it
from the cache, since the scheduler has more information for example it has
information on the reservation
[~wilfreds] please correct me if I missed something related the {{max
capacity}} cleanup part.
> Provide queue absolute used capacity in rest API
> ------------------------------------------------
>
> Key: YUNIKORN-93
> URL: https://issues.apache.org/jira/browse/YUNIKORN-93
> Project: Apache YuniKorn
> Issue Type: Improvement
> Reporter: Kinga Marton
> Assignee: Kinga Marton
> Priority: Minor
>
> Right now the absolute used capacity is hardcoded to 20%.
> The usage bar is rendered by this value, but currently, it is hardcoded.
> Note, both capacity/max capacity could be 0.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]