Example Allocation File

<?xml version="1.0"?>
<allocations>
  <queue name="sample_queue">
    <minResources>10000 mb,5 vcores,5 disks</minResources>
    <maxResources>20000 mb,50 vcores,50 disks</maxResources>
    <maxRunningApps>20</maxRunningApps>
    <weight>2.0</weight>
    <schedulingPolicy>fair</schedulingPolicy>
    <queue name="sample_sub_queue">
      <aclSubmitApps>john</aclSubmitApps>
      <minResources>5000 mb,0 vcores,2 disks</minResources>
    </queue>
  </queue>
  
  <user name="sample_user">
    <maxRunningApps>30</maxRunningApps>
  </user>
  <userMaxAppsDefault>5</userMaxAppsDefault>
  
  <queuePlacementPolicy>
    <rule name="specified" />
    <rule name="primaryGroup" create="false" />
    <rule name="default" />
  </queuePlacementPolicy>
</allocations>
Warning:

For backward compatibility with the original FairScheduler, queue elements can instead be named as pool elements.