Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-5085 Add support for change of container ExecutionType
  3. YARN-5938

Refactoring OpportunisticContainerAllocator to use SchedulerRequestKey instead of Priority and other misc fixes

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-alpha2
    • None
    • None

    Description

      Minor code re-organization to do the following:

      1. The OpportunisticContainerAllocatorAMService currently allocates outside the ApplicationAttempt lock maintained by the ApplicationMasterService. This should happen inside the lock.
      2. Refactored out some code to simplify the allocate() method.
      3. Removed some unused fields inside the OpportunisticContainerAllocator.
      4. Re-organized some of the code in the OpportunisticContainerAllocatorAMService::allocate method to make it a bit more readable.
      5. Moved SchedulerRequestKey to a new package, so it can be used by the OpportunisticContainerAllocator/Context.
      6. Moved all usages of Priority in the OpportunisticContainerAllocator -> SchedulerRequestKey.

      Attachments

        1. YARN-5938.001.patch
          31 kB
          Arun Suresh
        2. YARN-5938.002.patch
          88 kB
          Arun Suresh
        3. YARN-5938.003.patch
          89 kB
          Arun Suresh
        4. YARN-5938-YARN-5085.001.patch
          31 kB
          Arun Suresh
        5. YARN-5938-YARN-5085.002.patch
          80 kB
          Arun Suresh
        6. YARN-5938-YARN-5085.003.patch
          80 kB
          Arun Suresh
        7. YARN-5938-YARN-5085.004.patch
          81 kB
          Arun Suresh

        Activity

          People

            asuresh Arun Suresh
            asuresh Arun Suresh
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: