You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Craig Condit (Jira)" <ji...@apache.org> on 2022/03/24 15:43:00 UTC
[jira] [Resolved] (YUNIKORN-1134) Use new resource format in web app
[ https://issues.apache.org/jira/browse/YUNIKORN-1134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Craig Condit resolved YUNIKORN-1134.
------------------------------------
Fix Version/s: 1.0.0
Resolution: Fixed
Merged to master. Thanks [~akhilpb] for the contribution.
> Use new resource format in web app
> ----------------------------------
>
> Key: YUNIKORN-1134
> URL: https://issues.apache.org/jira/browse/YUNIKORN-1134
> Project: Apache YuniKorn
> Issue Type: Bug
> Components: webapp
> Reporter: Wilfred Spiegelenburg
> Assignee: Akhil PB
> Priority: Blocker
> Labels: pull-request-available
> Fix For: 1.0.0
>
>
> In YUNIKORN-165 the resource format for the REST API is changed. That change requires an update in the web application.
> Resources are returned as properly structured objects in the json response for the REST API. The map of resources is returned as a json object with a zero or more key value combinations:
> - key type string
> - value type number
> A nil resource will be returned as an empty object.
> Example (from /ws/v1/partition/default/nodes):
> {code:java}
> [
> {
> "nodeID": "yk8s-worker",
> "hostName": "",
> "rackName": "",
> "capacity": {
> "ephemeral-storage": 62725623808,
> "hugepages-1Gi": 0,
> "hugepages-2Mi": 0,
> "memory": 2081755136,
> "pods": 110,
> "vcore": 6000
> },
> "allocated": {
> "memory": 0,
> "vcore": 0
> },
> "occupied": {
> "memory": 577716800,
> "vcore": 200
> },
> "available": {
> "ephemeral-storage": 62725623808,
> "hugepages-1Gi": 0,
> "hugepages-2Mi": 0,
> "memory": 1504038336,
> "pods": 110,
> "vcore": 5800
> },
> "utilized": {
> "memory": 0,
> "vcore": 0
> },
> "allocations": [],
> "schedulable": true
> },
> ...
> ]
> {code}
> Other resources will be updated similarly.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org