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

FairScheduler: Incorrect threshold check for preemption

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5.0
    • None
    • None
    • Reviewed

    Description

      private boolean shouldAttemptPreemption() {
        if (preemptionEnabled) {
          return (preemptionUtilizationThreshold < Math.max(
              (float) rootMetrics.getAvailableMB() / clusterResource.getMemory(),
              (float) rootMetrics.getAvailableVirtualCores() /
                  clusterResource.getVirtualCores()));
        }
        return false;
      }
      

      preemptionUtilizationThreshould should be compared with allocatedResource instead of availableResource.

      Attachments

        1. YARN-2155.patch
          3 kB
          Wei Yan

        Issue Links

          Activity

            People

              ywskycn Wei Yan
              ywskycn Wei Yan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: