[ 
https://issues.apache.org/jira/browse/YUNIKORN-1263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17567392#comment-17567392
 ] 

Craig Condit edited comment on YUNIKORN-1263 at 7/15/22 9:20 PM:
-----------------------------------------------------------------

Example addition to the application object:
{noformat}
"requests": [
      {
        "allocationKey": "f137fab6-3cfa-4536-93f7-bfff92689382",
        "allocationTags": {
          "kubernetes.io/label/app": "pause",
          "kubernetes.io/label/applicationId": "pod-with-node-affinity-01",
          "kubernetes.io/label/queue": "root.sandbox",
          "kubernetes.io/meta/namespace": "default",
          "kubernetes.io/meta/podName": "with-node-affinity"
        },
        "requestTime": 1657917851845743911,
        "resource": {
          "memory": 500000000,
          "vcore": 100
        },
        "pendingCount": 1,
        "priority": "0",
        "queueName": "root.default",
        "requiredNodeId": null,
        "applicationId": "pod-with-node-affinity-01",
        "partition": "default",
        "placeholder": false,
        "placeholderTimeout": 0,
        "taskGroupName": "",
        "allocationLog": [
          {
            "message": "node(s) didn't match Pod's node affinity, node(s) had 
taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate",
            "timestamp": 1657917910919138494,
            "count": 81
          },
          {
            "message": "node(s) had taint {node-role.kubernetes.io/master: }, 
that the pod didn't tolerate, node(s) didn't match Pod's node affinity",
            "timestamp": 1657917911531769848,
            "count": 504
          },
          {
            "message": "node(s) didn't match Pod's node affinity",
            "timestamp": 1657917911532076451,
            "count": 1170
          }
        ]
      }
    ],{noformat}


was (Author: ccondit):
Example addition to the application object:

 

 

 
{noformat}
"requests": [
      {
        "allocationKey": "f137fab6-3cfa-4536-93f7-bfff92689382",
        "allocationTags": {
          "kubernetes.io/label/app": "pause",
          "kubernetes.io/label/applicationId": "pod-with-node-affinity-01",
          "kubernetes.io/label/queue": "root.sandbox",
          "kubernetes.io/meta/namespace": "default",
          "kubernetes.io/meta/podName": "with-node-affinity"
        },
        "requestTime": 1657917851845743911,
        "resource": {
          "memory": 500000000,
          "vcore": 100
        },
        "pendingCount": 1,
        "priority": "0",
        "queueName": "root.default",
        "requiredNodeId": null,
        "applicationId": "pod-with-node-affinity-01",
        "partition": "default",
        "placeholder": false,
        "placeholderTimeout": 0,
        "taskGroupName": "",
        "allocationLog": [
          {
            "message": "node(s) didn't match Pod's node affinity, node(s) had 
taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate",
            "timestamp": 1657917910919138494,
            "count": 81
          },
          {
            "message": "node(s) had taint {node-role.kubernetes.io/master: }, 
that the pod didn't tolerate, node(s) didn't match Pod's node affinity",
            "timestamp": 1657917911531769848,
            "count": 504
          },
          {
            "message": "node(s) didn't match Pod's node affinity",
            "timestamp": 1657917911532076451,
            "count": 1170
          }
        ]
      }
    ],{noformat}

> Add pending requests to application object in REST API
> ------------------------------------------------------
>
>                 Key: YUNIKORN-1263
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1263
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: core - common
>            Reporter: Craig Condit
>            Assignee: Craig Condit
>            Priority: Major
>
> Currently, the REST API responses for applications include only allocations 
> that are currently active. It would be useful to also have a list of pending 
> asks as well as diagnostic information on scheduling failures (specifically 
> with predicates).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to