<?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: Why my cluster memory is less even though physical memory is more..? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Why-my-cluster-memory-is-less-even-though-physical-memory-is/m-p/175202#M137463</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/11121/testsaran09.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Saravanan Ramara&lt;/A&gt;j&lt;/P&gt;&lt;P&gt;I assume the question is around the YARN total memory.&lt;/P&gt;&lt;P&gt;This is because Ambari uses the smallest capacity node to bring with the calculations, as Ambari expects a homogenous cluster.&lt;/P&gt;&lt;P&gt;But in this case, we have heterogenous cluster as : &lt;STRONG&gt;1 master 4 CPU,16 GB RAM + 1 data node 8 CPU,30 GB RAM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Thus, Ambari picks the 16 GB one and assumes 2nd one to be of same size and does the calculation for YARN's &lt;STRONG&gt;Node Manager (NM)&lt;/STRONG&gt; memory. I assume that both nodes have Node Manager running. &lt;/P&gt;&lt;P&gt;- I believe that you would have &lt;STRONG&gt;11 GB&lt;/STRONG&gt; as value for &lt;STRONG&gt;YARN/yarn.nodemanager.resource.memory-mb&lt;/STRONG&gt;. Thus, we have 22 GB  (11 * 2) available in this case which is &amp;gt; 16 GB. 16*2 &lt;STRONG&gt;= 32 GB&lt;/STRONG&gt;, but Ambari takes out memory required to run other processes outside the YARN workspace (eg: RM, HBase etc). Thus we have memory less than 32 GB available (which is expected).&lt;/P&gt;&lt;P&gt;Its a good idea to have homogeneous clusters.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;===================================================================&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;However, you can make use of &lt;STRONG&gt;Config Groups&lt;/STRONG&gt; here in Ambari based on different hardware profiles.&lt;/P&gt;&lt;P&gt;You can creates &lt;STRONG&gt;2 Config Groups (CG)&lt;/STRONG&gt; where each CG has one node. By default, there would be a &lt;STRONG&gt;default&lt;/STRONG&gt; CG as seen on YARN configs page having both the nodes.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How to create a CG is exemplified using HBase here :&lt;/STRONG&gt; &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_Ambari_Users_Guide/content/_using_host_config_groups.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_Ambari_Users_Guide/content/_using_host_config_groups.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I did the following testing in order to reduce the memory for one node. You can similarly bump up up the memory for the 30 GB node.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Starting with 2 node cluster, where Ambari had given 12 GB to each NM, with total capacity being 24 GB.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39984-screen-shot-2017-10-26-at-111536-pm.png" style="width: 2380px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19827i5D6EF3B715DBF227/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39984-screen-shot-2017-10-26-at-111536-pm.png" alt="39984-screen-shot-2017-10-26-at-111536-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- Created a CG named &lt;STRONG&gt;'New'&lt;/STRONG&gt; and added 2nd node to it. Then changed the &lt;STRONG&gt;YARN/yarn.nodemanager.resource.memory-mb for 2nd node under 'New' from ~ 12 GB to ~8 GB. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39985-screen-shot-2017-10-26-at-103835-pm.png" style="width: 2634px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19828iB457D95780B67054/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39985-screen-shot-2017-10-26-at-103835-pm.png" alt="39985-screen-shot-2017-10-26-at-103835-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- State of Node 1 under 'default' CG:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39986-screen-shot-2017-10-26-at-103845-pm.png" style="width: 2642px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19829i9C15AB75137B5CCE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39986-screen-shot-2017-10-26-at-103845-pm.png" alt="39986-screen-shot-2017-10-26-at-103845-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- Restarted "Affected components" as prompted by Ambari after the above changes.&lt;/P&gt;&lt;P&gt;- The Total memory changes from &lt;STRONG&gt;24 GB&lt;/STRONG&gt; to &lt;STRONG&gt;20 GB&lt;/STRONG&gt; now.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39987-screen-shot-2017-10-26-at-113313-pm.png" style="width: 2402px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19830iBF274B448FF34478/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39987-screen-shot-2017-10-26-at-113313-pm.png" alt="39987-screen-shot-2017-10-26-at-113313-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 10:13:03 GMT</pubDate>
    <dc:creator>sshridhar</dc:creator>
    <dc:date>2019-08-18T10:13:03Z</dc:date>
    <item>
      <title>Why my cluster memory is less even though physical memory is more..?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Why-my-cluster-memory-is-less-even-though-physical-memory-is/m-p/175200#M137461</link>
      <description>&lt;P&gt;We have 2-node cluster(1 master 4 CPU,16 GB RAM + 1 data node 8 CPU,30 GB RAM). However in Ambari console, I could be able to see the Total cluster memory is 22 GB only. Is there a way to allocate more cluster memory(around 36GB ) out of 46 GB physical memory we have together from master + data node. Morever, the number of containers are only 5 whereas the available Vcores are 8 already. I have attached the screenshot for your reference. Please suggest a way to improve the cluster resource utilization.  Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 10:07:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Why-my-cluster-memory-is-less-even-though-physical-memory-is/m-p/175200#M137461</guid>
      <dc:creator>testsaran09</dc:creator>
      <dc:date>2017-10-27T10:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why my cluster memory is less even though physical memory is more..?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Why-my-cluster-memory-is-less-even-though-physical-memory-is/m-p/175201#M137462</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/11121/testsaran09.html" nodeid="11121"&gt;@Saravanan Ramaraj&lt;/A&gt;&lt;P&gt;Ideally Ambari should show your total RAM and CPU information, until if you have any issues with Ambari agent.&lt;/P&gt;&lt;P&gt;Can you provide free -m output from your both the nodes and add scree shots of ambari cluster information.??&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 10:39:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Why-my-cluster-memory-is-less-even-though-physical-memory-is/m-p/175201#M137462</guid>
      <dc:creator>divakarreddy_a</dc:creator>
      <dc:date>2017-10-27T10:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why my cluster memory is less even though physical memory is more..?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Why-my-cluster-memory-is-less-even-though-physical-memory-is/m-p/175202#M137463</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/11121/testsaran09.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Saravanan Ramara&lt;/A&gt;j&lt;/P&gt;&lt;P&gt;I assume the question is around the YARN total memory.&lt;/P&gt;&lt;P&gt;This is because Ambari uses the smallest capacity node to bring with the calculations, as Ambari expects a homogenous cluster.&lt;/P&gt;&lt;P&gt;But in this case, we have heterogenous cluster as : &lt;STRONG&gt;1 master 4 CPU,16 GB RAM + 1 data node 8 CPU,30 GB RAM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Thus, Ambari picks the 16 GB one and assumes 2nd one to be of same size and does the calculation for YARN's &lt;STRONG&gt;Node Manager (NM)&lt;/STRONG&gt; memory. I assume that both nodes have Node Manager running. &lt;/P&gt;&lt;P&gt;- I believe that you would have &lt;STRONG&gt;11 GB&lt;/STRONG&gt; as value for &lt;STRONG&gt;YARN/yarn.nodemanager.resource.memory-mb&lt;/STRONG&gt;. Thus, we have 22 GB  (11 * 2) available in this case which is &amp;gt; 16 GB. 16*2 &lt;STRONG&gt;= 32 GB&lt;/STRONG&gt;, but Ambari takes out memory required to run other processes outside the YARN workspace (eg: RM, HBase etc). Thus we have memory less than 32 GB available (which is expected).&lt;/P&gt;&lt;P&gt;Its a good idea to have homogeneous clusters.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;===================================================================&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;However, you can make use of &lt;STRONG&gt;Config Groups&lt;/STRONG&gt; here in Ambari based on different hardware profiles.&lt;/P&gt;&lt;P&gt;You can creates &lt;STRONG&gt;2 Config Groups (CG)&lt;/STRONG&gt; where each CG has one node. By default, there would be a &lt;STRONG&gt;default&lt;/STRONG&gt; CG as seen on YARN configs page having both the nodes.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How to create a CG is exemplified using HBase here :&lt;/STRONG&gt; &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_Ambari_Users_Guide/content/_using_host_config_groups.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_Ambari_Users_Guide/content/_using_host_config_groups.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I did the following testing in order to reduce the memory for one node. You can similarly bump up up the memory for the 30 GB node.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Starting with 2 node cluster, where Ambari had given 12 GB to each NM, with total capacity being 24 GB.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39984-screen-shot-2017-10-26-at-111536-pm.png" style="width: 2380px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19827i5D6EF3B715DBF227/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39984-screen-shot-2017-10-26-at-111536-pm.png" alt="39984-screen-shot-2017-10-26-at-111536-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- Created a CG named &lt;STRONG&gt;'New'&lt;/STRONG&gt; and added 2nd node to it. Then changed the &lt;STRONG&gt;YARN/yarn.nodemanager.resource.memory-mb for 2nd node under 'New' from ~ 12 GB to ~8 GB. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39985-screen-shot-2017-10-26-at-103835-pm.png" style="width: 2634px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19828iB457D95780B67054/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39985-screen-shot-2017-10-26-at-103835-pm.png" alt="39985-screen-shot-2017-10-26-at-103835-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- State of Node 1 under 'default' CG:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39986-screen-shot-2017-10-26-at-103845-pm.png" style="width: 2642px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19829i9C15AB75137B5CCE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39986-screen-shot-2017-10-26-at-103845-pm.png" alt="39986-screen-shot-2017-10-26-at-103845-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- Restarted "Affected components" as prompted by Ambari after the above changes.&lt;/P&gt;&lt;P&gt;- The Total memory changes from &lt;STRONG&gt;24 GB&lt;/STRONG&gt; to &lt;STRONG&gt;20 GB&lt;/STRONG&gt; now.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39987-screen-shot-2017-10-26-at-113313-pm.png" style="width: 2402px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19830iBF274B448FF34478/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39987-screen-shot-2017-10-26-at-113313-pm.png" alt="39987-screen-shot-2017-10-26-at-113313-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 10:13:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Why-my-cluster-memory-is-less-even-though-physical-memory-is/m-p/175202#M137463</guid>
      <dc:creator>sshridhar</dc:creator>
      <dc:date>2019-08-18T10:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why my cluster memory is less even though physical memory is more..?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Why-my-cluster-memory-is-less-even-though-physical-memory-is/m-p/175203#M137464</link>
      <description>&lt;P&gt;Thanks much for your detailed reply, it really helps.!!!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 09:23:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Why-my-cluster-memory-is-less-even-though-physical-memory-is/m-p/175203#M137464</guid>
      <dc:creator>testsaran09</dc:creator>
      <dc:date>2017-11-01T09:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why my cluster memory is less even though physical memory is more..?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Why-my-cluster-memory-is-less-even-though-physical-memory-is/m-p/175204#M137465</link>
      <description>&lt;P&gt;Thanks. Glad to know that it helped.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 08:38:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Why-my-cluster-memory-is-less-even-though-physical-memory-is/m-p/175204#M137465</guid>
      <dc:creator>sshridhar</dc:creator>
      <dc:date>2017-11-07T08:38:41Z</dc:date>
    </item>
  </channel>
</rss>

