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

Allow to override queue prefix, where new queues will be created

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.3.0
    • Fix Version/s: None
    • Component/s: scheduler
    • Labels:
      None
    • Environment:

      Yarn 2.3.0

      Description

      Fair scheduler has a couple of QueuePlacementRules. Those rules can create queues, if they not exists with hardcoded prefix "root.".

      Consider an example: we have a placement rule, which creates user's queue if it not exists. Current implementation creates it at "root." prefix Suppose that this user runs a big job. In that case it will get a fair share of resources because queue will be created at 'root.' with default settings, and that affects all other users of the cluster.
      Of course, FairScheduler can place such users to default queue, but in that case if user submits a big queue it will eat resources of whole queue, and we know that no preemption can be done within one queue (Or i'm wrong?). So effectively one user can usurp all default queue resources.

      To solve that I created a patch, which allows to override "root." prefix in QueuePlacementRules. Thats gives us flexibility to automatically create queues for users or group of users under predefined queue. So, every user will get a separate queue and will share parent queue resources and can't usurp all resources, because parent node can be configured to preempt tasks.

      Consider example (parent queue specified for each rule):

      policy.xml
      <queuePlacementPolicy>
        <rule name='specified' parent='granted'/>
        <rule name='user'  parent='guests'/>
      </queuePlacementPolicy>
      

      With such definition queue requirements will give us:

      Example.java
      "root.granted.specifiedq" == policy.assignAppToQueue("specifiedq", "someuser");
      "root.guests.someuser" == policy.assignAppToQueue("default", "someuser");
      "root.guests.otheruser" == policy.assignAppToQueue("default", "otheruser"); 
      

        Attachments

        1. YARN-1921.patch
          5 kB
          Andrey Stepachev
        2. YARN-1921.patch
          10 kB
          Andrey Stepachev

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                octo47 Andrey Stepachev
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: