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

Resource type is ignored when FS decide to preempt

    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@cloudera.com, wilfreds and snemeth.

          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

            People

              snemeth Szilard Nemeth
              yufeigu Yufei Gu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: