Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-10588

Percentage of queue and cluster is zero in WebUI

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.4.0, 3.3.1, 2.10.2, 3.2.3
    • None
    • None

    Description

      Steps to reproduce:

      Configure below property in resource-types.xml

      <property>
       <name>yarn.resource-types</name>
       <value>yarn.io/gpu</value>
       </property>

      Submit a job

      In UI you can see % Of Queue and % Of Cluster is zero for the submitted application

       

      This is because in SchedulerApplicationAttempt has below check for calculating queueUsagePerc and clusterUsagePerc

      if (!calc.isInvalidDivisor(cluster)) {
              float queueCapacityPerc = queue.getQueueInfo(false, false)
                  .getCapacity();
              queueUsagePerc = calc.divide(cluster, usedResourceClone,
                  Resources.multiply(cluster, queueCapacityPerc)) * 100;
              if (Float.isNaN(queueUsagePerc) || Float.isInfinite(queueUsagePerc)) {
                queueUsagePerc = 0.0f;
              }
              clusterUsagePerc =
                  calc.divide(cluster, usedResourceClone, cluster) * 100;
            }
      

      calc.isInvalidDivisor(cluster) always returns true as gpu resource is 0

      Attachments

        1. YARN-10588.004.patch
          6 kB
          Bilwa S T
        2. YARN-10588.003.patch
          4 kB
          Bilwa S T
        3. YARN-10588.002.patch
          4 kB
          Bilwa S T
        4. YARN-10588.001.patch
          4 kB
          Bilwa S T

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            BilwaST Bilwa S T
            BilwaST Bilwa S T
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment