<?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: How is &amp;quot;yarn.nodemanager.resource.cpu-vcores&amp;quot; value determined? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-is-quot-yarn-nodemanager-resource-cpu-vcores-quot-value/m-p/138436#M27744</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/8079/milanovaelitsa.html" nodeid="8079"&gt;@Elitsa Milanova&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Check this blog for getting fair idea for the values.-&lt;/P&gt;&lt;P&gt;&lt;A href="http://hortonworks.com/blog/managing-cpu-resources-in-your-hadoop-yarn-clusters/" target="_blank"&gt;http://hortonworks.com/blog/managing-cpu-resources-in-your-hadoop-yarn-clusters/&lt;/A&gt;&lt;/P&gt;&lt;P&gt; &lt;A href="http://crazyadmins.com/tag/tuning-yarn-to-get-maximum-performance/" target="_blank"&gt;http://crazyadmins.com/tag/tuning-yarn-to-get-maximum-performance/&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2016 20:16:12 GMT</pubDate>
    <dc:creator>sshimpi</dc:creator>
    <dc:date>2016-05-09T20:16:12Z</dc:date>
    <item>
      <title>How is "yarn.nodemanager.resource.cpu-vcores" value determined?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-is-quot-yarn-nodemanager-resource-cpu-vcores-quot-value/m-p/138435#M27743</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;I have SUSE11 SP4 machine where I have installed and configured HDP2.3, YARN, MapReduce, etc. I have done no modifications during the installation using the Ambari UI - just clicking next. I am using Amazon image with m4.xlarge size which means 4 vCPU and 16 GiB Memory. The YARN version is 2.7.1.2.3. &lt;/P&gt;&lt;P&gt;When I open the &lt;/P&gt;&lt;P&gt;/etc/hadoop/2.3.4.7-4/0/yarn-site.xml &lt;/P&gt;&lt;P&gt;I see the following entries there:&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;yarn.nodemanager.resource.cpu-vcores&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;     

&amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;yarn.scheduler.minimum-allocation-vcores&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;1&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;

&amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;yarn.scheduler.maximum-allocation-vcores&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;My question is how the "&lt;/STRONG&gt;&lt;STRONG&gt;yarn.nodemanager.resource.cpu-vcores" value determined?&lt;/STRONG&gt; I thought that this value is relevant to the vCPUs which in this case are 4. &lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 19:49:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-is-quot-yarn-nodemanager-resource-cpu-vcores-quot-value/m-p/138435#M27743</guid>
      <dc:creator>milanova_elitsa</dc:creator>
      <dc:date>2016-05-09T19:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: How is "yarn.nodemanager.resource.cpu-vcores" value determined?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-is-quot-yarn-nodemanager-resource-cpu-vcores-quot-value/m-p/138436#M27744</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/8079/milanovaelitsa.html" nodeid="8079"&gt;@Elitsa Milanova&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Check this blog for getting fair idea for the values.-&lt;/P&gt;&lt;P&gt;&lt;A href="http://hortonworks.com/blog/managing-cpu-resources-in-your-hadoop-yarn-clusters/" target="_blank"&gt;http://hortonworks.com/blog/managing-cpu-resources-in-your-hadoop-yarn-clusters/&lt;/A&gt;&lt;/P&gt;&lt;P&gt; &lt;A href="http://crazyadmins.com/tag/tuning-yarn-to-get-maximum-performance/" target="_blank"&gt;http://crazyadmins.com/tag/tuning-yarn-to-get-maximum-performance/&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 20:16:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-is-quot-yarn-nodemanager-resource-cpu-vcores-quot-value/m-p/138436#M27744</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-05-09T20:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: How is "yarn.nodemanager.resource.cpu-vcores" value determined?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-is-quot-yarn-nodemanager-resource-cpu-vcores-quot-value/m-p/138437#M27745</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for the posts. &lt;/P&gt;&lt;P&gt;I get the idea how to configure the values but what I still do not understand is how come when I use c4.xlarge, for example, the values are set to 3 i.e. and when I use m3.2xlarge i.e. the values are set to 1, keeping in mind that there are no explicit configuration I made and the configurations does not differ between the two hosts. How this default value is set? If this is default, why not 1 everytime? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 21:06:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-is-quot-yarn-nodemanager-resource-cpu-vcores-quot-value/m-p/138437#M27745</guid>
      <dc:creator>milanova_elitsa</dc:creator>
      <dc:date>2016-05-09T21:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: How is "yarn.nodemanager.resource.cpu-vcores" value determined?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-is-quot-yarn-nodemanager-resource-cpu-vcores-quot-value/m-p/138438#M27746</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/8079/milanovaelitsa.html" nodeid="8079"&gt;@Elitsa Milanova&lt;/A&gt; yarn.nodemanager.resource.cpu-vcores are by default ~80% of total vCPUs available on the machine. Ambari internal script picks this default config based on this calculation AFAIK. But it may not always be the best practice depending on what other non-yarn components you are running on the machine, OS requirements etc. These default configs are starting point for you and will need tunings/changes depending on use case, workload requirements, cluster/host(s) specifications.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 21:54:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-is-quot-yarn-nodemanager-resource-cpu-vcores-quot-value/m-p/138438#M27746</guid>
      <dc:creator>pardeep_kumar</dc:creator>
      <dc:date>2016-05-09T21:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: How is "yarn.nodemanager.resource.cpu-vcores" value determined?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-is-quot-yarn-nodemanager-resource-cpu-vcores-quot-value/m-p/138439#M27747</link>
      <description>&lt;P style="margin-left: 20px;"&gt;Thank you, &lt;A rel="user" href="https://community.cloudera.com/users/139/pardeepkumar.html" nodeid="139"&gt;@Pardeep&lt;/A&gt; and &lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;!&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;Finally, from the articles above and from your replies I have managed to get a short summary. I am posting this in case somebody else wonders about this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;"In order to handle the variety of
workloads related with intense CPU usage, YARN has introduced a new concept
called "vcores" (short for virtual cores). A vcore, is a usage share
of a host CPU which YARN Node Manager allocates to use all available resources
in the most efficient possible way. YARN hosts can be tuned to optimize the use
of vcores by configuring the available YARN containers as the number of vcores
has to be set by an administrator in yarn-site.xml on each node. The decision
of how much it should be set to is driven by the type of workloads running in
the cluster and the type of hardware available. The general recommendation is
to set it to the number of physical cores on the node, but administrators can
bump it up if they wish to run additional containers on nodes with faster CPUs.
In order to enable CPU scheduling, there are some configuration properties that
administrators and users need to be aware of:&lt;/BLOCKQUOTE&gt;&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;yarn.nodemanager.resource.cpu-vcores&lt;/EM&gt;&lt;/STRONG&gt;:
Set to the appropriate number in yarn-site.xml on all the nodes. This is
strictly dependent on the type of workloads running in a cluster, but the
general recommendation is that admins set it to be equal to the number of
physical cores on the machine.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;yarn.scheduler.minimum-allocation-vcores&lt;/EM&gt;&lt;/STRONG&gt;:
This is the minimum allocation for every container request at the Resource
Manager, in terms of virtual CPU cores. Requests lower than this won't take
effect, and the specified value will get allocated the minimum.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;yarn.scheduler.maximum-allocation-vcores&lt;/EM&gt;&lt;/STRONG&gt;:
This is the maximum allocation for every container request at the Resource
Manager, in terms of virtual CPU cores. Requests higher than this won't take
effect, and will get capped to this value.&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE&gt;“yarn.scheduler.maximum-allocation-vcores”
controls the maximum vcores that any submitted job can request.
“yarn.nodemanager.resource.cpu-vcores” controls how many vcores can be
scheduled on a particular NodeManager instance. So “yarn.nodemanager.resource.cpu-vcores”
can vary from host to host (NodeManager to NodeManager), while
“yarn.scheduler.maximum-allocation-vcores” is a global property of the
scheduler."
&lt;/BLOCKQUOTE&gt;&lt;P&gt;Further information can be taken also from here: &lt;A href="https://community.cloudera.com/t5/Cloudera-Manager-Installation/yarn-nodemanager-resource-cpu-vcores-and-yarn-scheduler-maximum/td-p/31098" target="_blank"&gt;https://community.cloudera.com/t5/Cloudera-Manager-Installation/yarn-nodemanager-resource-cpu-vcores-and-yarn-scheduler-maximum/td-p/31098&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 15:27:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-is-quot-yarn-nodemanager-resource-cpu-vcores-quot-value/m-p/138439#M27747</guid>
      <dc:creator>milanova_elitsa</dc:creator>
      <dc:date>2016-05-10T15:27:09Z</dc:date>
    </item>
  </channel>
</rss>

