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

Resource type is ignored when FS decide to preempt

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

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • fairscheduler
    • None

    Description

      Method Fairscheduler#shouldAttemptPreemption doesn't consider resources other than vcore and memory. We may need to rethink it in the resource type scenario. cc Miklos Szegedi, Wilfred Spiegelenburg and Szilard Nemeth.

          if (context.isPreemptionEnabled()) {
            return (context.getPreemptionUtilizationThreshold() < Math.max(
                (float) rootMetrics.getAllocatedMB() /
                    getClusterResource().getMemorySize(),
                (float) rootMetrics.getAllocatedVirtualCores() /
                    getClusterResource().getVirtualCores()));
          }
      

      Attachments

        1. YARN-8059.001.patch
          91 kB
          Szilard Nemeth
        2. YARN-8059.002.patch
          15 kB
          Szilard Nemeth
        3. YARN-8059.003.patch
          25 kB
          Szilard Nemeth
        4. YARN-8059.004.patch
          25 kB
          Szilard Nemeth
        5. YARN-8059.005.patch
          26 kB
          Szilard Nemeth
        6. YARN-8059.006.patch
          67 kB
          Szilard Nemeth

        Issue Links

        Activity

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

          People

            snemeth Szilard Nemeth
            yufeigu Yufei Gu

            Dates

              Created:
              Updated:

              Slack

                Issue deployment