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

We should display origin value of demand in fair scheduler page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • scheduler
    • None

    Description

      The value of demand of leaf queue that we now view on the fair scheduler page shows only the value of maxResources when the demand value is greater than maxResources. It doesn't reflect the real situation. Most of the time, when we expand the queue, we often rely on seeing the current demand real value.

      private void updateDemandForApp(FSAppAttempt sched, Resource maxRes) {
          sched.updateDemand();
          Resource toAdd = sched.getDemand();
          if (LOG.isDebugEnabled()) {
            LOG.debug("Counting resource from " + sched.getName() + " " + toAdd
                + "; Total resource consumption for " + getName() + " now "
                + demand);
          }
          demand = Resources.add(demand, toAdd);
          demand = Resources.componentwiseMin(demand, maxRes);
        }
      

      Attachments

        Activity

          People

            wilfreds Wilfred Spiegelenburg
            daemon YunFan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: