Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-9115 Capacity Scheduler: larger container configuration improvement on the queue level
  3. YARN-9055

Capacity Scheduler: allow larger queue level maximum-allocation-mb to override the cluster configuration

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.7.0
    • None
    • capacityscheduler
    • None

    Description

      YARN-1582 adds the support of maximum-allocation-mb configuration per queue. That feature gives the flexibility to give different memory requirements for different queues. Such patch adds the limitation that the queue level configuration can't exceed the cluster level default configuration, but I feel it may make more sense to remove such limitation to allow any overrides since

      1. Such configuration is controlled by the admin so it shouldn't get abused;
      2. It's common that typical queues require standard size containers while some job (queues) have requirements for larger containers. With current limitation, we have to set larger configuration on the cluster setting which will cause resource abuse unless we override them on all the queues.

      We can remove such limitation in CapacitySchedulerConfiguration.java so the cluster setting provides the default value and queue setting can override it.

         if (maxAllocationMbPerQueue > clusterMax.getMemorySize()
              || maxAllocationVcoresPerQueue > clusterMax.getVirtualCores()) {
            throw new IllegalArgumentException(
                "Queue maximum allocation cannot be larger than the cluster setting"
                + " for queue " + queue
                + " max allocation per queue: " + result
                + " cluster setting: " + clusterMax);
          }
      

      Let me know if it makes sense.

      Attachments

        1. YARN-9055.1.patch
          4 kB
          Aihua Xu

        Activity

          People

            aihuaxu Aihua Xu
            aihuaxu Aihua Xu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: