Configure Queue Ordering Policies
You can configure the property for queue ordering policies to fifo
or fair
in capacity-scheduler.xml
.
Ordering policies are configured in
capacity-scheduler.xml
. To
specify ordering policies on a per-queue basis, set the following property to
fifo
or fair
. The default setting is
fifo
.
<property> <name>yarn.scheduler.capacity.<queue-path>.ordering-policy</name> <value>fair</value> </property>
You can use the following property to enable size-based weighting of resource
allocation. When this property is set to true
, queue
resources are assigned to individual applications based on their size,
rather than providing an equal share of queue resources to all applications
regardless of size. The default setting is false
.
<property> <name>yarn.scheduler.capacity.<queue-path> .ordering-policy.fair.enable-size-based-weight</name> <value>true</value> </property>