[ https://issues.apache.org/jira/browse/YUNIKORN-959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17680520#comment-17680520 ]
Wilfred Spiegelenburg edited comment on YUNIKORN-959 at 1/25/23 9:47 AM: ------------------------------------------------------------------------- The changes are not submitted to the core just yet. The open PR with the change is here: [https://github.com/apache/yunikorn-core/pull/497] It shows the changes for cluster json, which now looks like this: {code:java} [ { "startTime": 1649167576110754000, "rmBuildInformation": [ { "buildDate": "2022-02-21T19:09:16+0800", "buildVersion": "latest", "isPluginVersion": "false", "rmId": "rm-123" } ], "partition": "default", "clusterName": "kubernetes", } ] {code} and for partition json after the changes: {code:java} [ { "clusterId": "mycluster", "name": "default", "state": "Active", "lastStateTransitionTime": 1649167576110754000, "capacity": { "capacity": { "ephemeral-storage": 188176871424, "hugepages-1Gi": 0, "hugepages-2Mi": 0, "memory": 1000000000, "pods": 330, "vcore": 1000 }, "usedCapacity": { "memory": 800000000, "vcore": 500 }, "utilization": { "memory": 80, "vcore": 50 } }, "nodeSortingPolicy": { "type": "fair", "resourceWeights": { "memory": 1.5, "vcore": 1.3 } }, "applications": { "New": 5, "Pending": 5, "total": 10 }, "totalContainers": "4", "totalNodes": "2" } ] {code} was (Author: wifreds): The changes are not submitted to the core just yet. The open PR with the change is here: [https://github.com/apache/yunikorn-core/pull/497] It shows the changes for cluster json: {code:java} [ { "startTime": 1649167576110754000, "rmBuildInformation": [ { "buildDate": "2022-02-21T19:09:16+0800", "buildVersion": "latest", "isPluginVersion": "false", "rmId": "rm-123" } ], "partition": "default", "clusterName": "kubernetes", } ] {code} and for partition json: {code:java} [ { "clusterId": "mycluster", "name": "default", "state": "Active", "lastStateTransitionTime": 1649167576110754000, "capacity": { "capacity": { "ephemeral-storage": 188176871424, "hugepages-1Gi": 0, "hugepages-2Mi": 0, "memory": 1000000000, "pods": 330, "vcore": 1000 }, "usedCapacity": { "memory": 800000000, "vcore": 500 }, "utilization": { "memory": 80, "vcore": 50 } }, "nodeSortingPolicy": { "type": "fair", "resourceWeights": { "memory": 1.5, "vcore": 1.3 } }, "applications": { "New": 5, "Pending": 5, "total": 10 }, "totalContainers": "4", "totalNodes": "2" } ] {code} > Simplify partition info in the REST call > ---------------------------------------- > > Key: YUNIKORN-959 > URL: https://issues.apache.org/jira/browse/YUNIKORN-959 > Project: Apache YuniKorn > Issue Type: Improvement > Components: core - common > Reporter: Wilfred Spiegelenburg > Assignee: Ted Lin > Priority: Major > Labels: pull-request-available > > The old and new REST calls have two really similar end points: > * old: {{/ws/v1/clusters}} > * new: {{/ws/v1/partitions}} > The two calls expose similar details but not equivalent. The old call needs > to be removed and cleaned up -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@yunikorn.apache.org For additional commands, e-mail: issues-h...@yunikorn.apache.org