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

Resource type is ignored when FS decide to preempt

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: fairscheduler
    • Labels:
      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.006.patch
          67 kB
          Szilard Nemeth
        2. YARN-8059.005.patch
          26 kB
          Szilard Nemeth
        3. YARN-8059.004.patch
          25 kB
          Szilard Nemeth
        4. YARN-8059.003.patch
          25 kB
          Szilard Nemeth
        5. YARN-8059.002.patch
          15 kB
          Szilard Nemeth
        6. YARN-8059.001.patch
          91 kB
          Szilard Nemeth

          Issue Links

            Activity

              People

              • Assignee:
                snemeth Szilard Nemeth
                Reporter:
                yufeigu Yufei Gu
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: