<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Is there a way to set minimum/maximum number of containers for a application? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Is-there-a-way-to-set-minimum-maximum-number-of-containers/m-p/190661#M152750</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/33151/khajahussain.html"&gt;Khaja Hussain&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please find the attached Yarn Queue manager screen snap for example.&lt;/P&gt;&lt;P&gt;1. You can control the resources by having separate queues for different applications with that you can control resources spent at the queue.&lt;/P&gt;&lt;P&gt;2. Within a Single queue , you can mention the "Minimum User limit %" to control a single user resource %.  Also you can choose ordering policy as "Fair" instead of "FIFO"(First in first out)&lt;/P&gt;&lt;P&gt;3.  You can also control maximum % of resources a single queue can take out of the total cluster capacity.&lt;/P&gt;&lt;P&gt;Hope the attached screen snap helps.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/40420-yarn-queue-config-to-control-min-max.jpg"&gt;yarn-queue-config-to-control-min-max.jpg&lt;/A&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2017 09:42:45 GMT</pubDate>
    <dc:creator>rrrajesh</dc:creator>
    <dc:date>2017-09-20T09:42:45Z</dc:date>
    <item>
      <title>Is there a way to set minimum/maximum number of containers for a application?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-a-way-to-set-minimum-maximum-number-of-containers/m-p/190660#M152749</link>
      <description>&lt;P&gt;Is
there a way to set minimum/maximum number of containers for an application?
What I am observing in my cluster is that, when YARN try to submit a job. It
pretty much put all the &lt;U&gt;available resources&lt;/U&gt; to a given job depending on
the queue setting. When the next jobs comes in to the queue let’s say after 5
sec, it tries to find out how much resource are available. At this point of
time, when all the resources are given to the 1&lt;SUP&gt;st&lt;/SUP&gt; job which is still
running, it allots minimum allocation set-up on the cluster. This create a
large gap between 2 jobs, mean the same work load was submitted to the cluster.
The 1&lt;SUP&gt;st&lt;/SUP&gt; jobs completed may be in 10 minutes because it got lot of
resource. But the 2&lt;SUP&gt;nd&lt;/SUP&gt; job when it came in got minimum allocation
took 3 hours to complete. I am trying to avoid such big gap of execution time.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 02:10:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-a-way-to-set-minimum-maximum-number-of-containers/m-p/190660#M152749</guid>
      <dc:creator>khussain00</dc:creator>
      <dc:date>2017-09-20T02:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to set minimum/maximum number of containers for a application?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-a-way-to-set-minimum-maximum-number-of-containers/m-p/190661#M152750</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/33151/khajahussain.html"&gt;Khaja Hussain&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please find the attached Yarn Queue manager screen snap for example.&lt;/P&gt;&lt;P&gt;1. You can control the resources by having separate queues for different applications with that you can control resources spent at the queue.&lt;/P&gt;&lt;P&gt;2. Within a Single queue , you can mention the "Minimum User limit %" to control a single user resource %.  Also you can choose ordering policy as "Fair" instead of "FIFO"(First in first out)&lt;/P&gt;&lt;P&gt;3.  You can also control maximum % of resources a single queue can take out of the total cluster capacity.&lt;/P&gt;&lt;P&gt;Hope the attached screen snap helps.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/40420-yarn-queue-config-to-control-min-max.jpg"&gt;yarn-queue-config-to-control-min-max.jpg&lt;/A&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 09:42:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-a-way-to-set-minimum-maximum-number-of-containers/m-p/190661#M152750</guid>
      <dc:creator>rrrajesh</dc:creator>
      <dc:date>2017-09-20T09:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to set minimum/maximum number of containers for a application?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-a-way-to-set-minimum-maximum-number-of-containers/m-p/190662#M152751</link>
      <description>&lt;P&gt;Thanks Rajesh for the response. I will take this back to the table and make few adjustment to see if it works. One other thing I want to clarify like we have 3 queue, HIGH, MEDIUM &amp;amp; LOW. If the user submits the a work load (example data processing for Jan 2017) in the medium queue and same work load(Feb 2017) is submitted by the user after few secs while the 1st job is running , I want the execution time to be very similar. What I am seeing is vast difference in execution time, which is what I am trying to avoid here. The scenarios are happening within the queue. I think order policy as FAIR in this instance should fetch me the similar execution time.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 20:46:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-a-way-to-set-minimum-maximum-number-of-containers/m-p/190662#M152751</guid>
      <dc:creator>khussain00</dc:creator>
      <dc:date>2017-09-20T20:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to set minimum/maximum number of containers for a application?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-a-way-to-set-minimum-maximum-number-of-containers/m-p/190663#M152752</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/33151/khajahussain.html"&gt;Khaja Hussain&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You haven't mentioned time the workload timings when they run separately.&lt;/P&gt;&lt;P&gt;For example, Can you run Jan 2017 data processing separately and record the number of containers it requires and the time it takes (10 min)&lt;/P&gt;&lt;P&gt;The same way repeat for Feb 2017 data processing separately(12 min).  Compare the number of containers each job demands.  &lt;/P&gt;&lt;P&gt;Then set the order policy as FAIR and set Minimum user limit to 50% for the queue, and run both the jobs parallely.   Now the resource allocation should be equally distributed and observe the increased run time for the jobs as the number of containers available for each job were reduced.&lt;/P&gt;&lt;P&gt;Also please refer the article on user-limit-factor in a yarn queue,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/supportkb/49640/what-does-the-user-limit-factor-do-when-used-in-ya.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/49640/what-does-the-user-limit-factor-do-when-used-in-ya.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Accept the answer if this helps for your query.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 21:17:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-a-way-to-set-minimum-maximum-number-of-containers/m-p/190663#M152752</guid>
      <dc:creator>rrrajesh</dc:creator>
      <dc:date>2017-09-20T21:17:30Z</dc:date>
    </item>
  </channel>
</rss>

