MapR 6.1.0 implements correct steady/instantaneous Fair Scheduler shares, headroom, and maximum resource calculation for queues with label-based scheduling (LBS).
Example of LBS Resource Computation
For example, imagine that you have the following resources:

Using the former fair-share resource distribution results in the following:

Using the new LBS resource distribution results in the following:

yarn.scheduler.fair.preemption.cluster-utilization-threshold=0.8f).
With LBS, preemption occurs per labeled resource, as that resource becomes 80% full.
defaultQueueLabel
Assigned to all new queues and existing queues that do not have a label (excluding
the root queue).
For example,
root.%username% queue is created if you submit a new job
without queue information and property
yarn.scheduler.fair.user-as-default-queue is true.
fair-scheduler.xml:
<allocations>
<defaultQueueLabel>LabelA</defaultQueueLabel>
<queue name="root">
...
<queue name="queue1">
</queue>
<queue name="queue2">
<label>LabelB</label>
</queue>
...
</queue>
</allocations>See Specifying Fair Scheduler Configuration Properties in yarn-site.xml for more information.
yarn.scheduler.fair.resources-based-on-labels-enabled
Used to enable or disable recomputing of fair shares based on labels. It allows container allocation on all nodes.
yarn-site.xml:
<property>
<name>yarn.scheduler.fair.resources-based-on-labels-enabled</name>
<value>false</value>
</property>yarn.scheduler.fair.preemption.cluster-utilization-threshold.based-on-labels-enabledAllows
enabling or disabling (default) preemption of the threshold per-label. To overcome
the default and start container preemption when the threshold of the label is
exceeded, change this property to true.
yarn-site.xml:
<property>
<name>yarn.scheduler.fair.preemption.cluster-utilization-threshold.based-on-labels-enabled</name>
<value>false</value>
</property>See Specifying Fair Scheduler Configuration Properties in yarn-site.xml for more information.
root, all queues including the default, must be labeled, either independent or through inheritance.