[
https://issues.apache.org/jira/browse/YUNIKORN-958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17475979#comment-17475979
]
Anuraag Nalluri commented on YUNIKORN-958:
------------------------------------------
Hi [~wilfreds], trying to understand the ask here. We already have an
implementation for /ws/v1/partition/\{partition}/nodes
[here|https://github.com/apache/incubator-yunikorn-core/commit/5cb9c4f1d59427b251ff7afaec5dc61259f2cfdb].
The primary difference between the old and new path in the ticket description
here is the use of "getNodesUtilJSON" vs. "getNodeJSON", respectively. The
latter seems to be a cleaner way to display capacity, occupied, and available
resources as well as allocations for specific applications. Attached
screenshots showing the results of both API calls to this ticket.
The only information I see in the old path that is not present in the new path
is % utilization. Therefore, I'm not sure whether the ask is one of the
following:
1. To introduce a field in the output of the new REST call that displays %
utilization
2. To expose the old "getNodesUtilJSON" under a different path completely (ex.
/ws/v1/partition/\{partition}/nodes/utilization)
3. To simply remove the old REST path
or none of these. Any clarification/input you can provide here would be much
appreciated.
> expose node utilisation info in new REST calls
> ----------------------------------------------
>
> Key: YUNIKORN-958
> URL: https://issues.apache.org/jira/browse/YUNIKORN-958
> Project: Apache YuniKorn
> Issue Type: Sub-task
> Components: core - common
> Reporter: Wilfred Spiegelenburg
> Assignee: Anuraag Nalluri
> Priority: Major
> Attachments: Screen Shot 2022-01-13 at 10.24.47 PM.png, Screen Shot
> 2022-01-13 at 10.25.02 PM.png
>
>
> getNodesUtilization is exposed in the REST under the old path
> {{/ws/v1/nodes/utilization}} but not under the new path
> {{{}/ws/v1/partition/\{partition}/nodes{}}}.
> The utilisation should be exposed as part of the new path.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]