forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
33 lines
10 KiB
HTML
33 lines
10 KiB
HTML
<a name="mrs_01_0855"></a><a name="mrs_01_0855"></a>
|
|
|
|
<h1 class="topictitle1">Configuring Resources for a NodeManager Role Instance</h1>
|
|
<div id="body1590130746681"><div class="section" id="mrs_01_0855__sfd216f4a53f643f9b728da02006390a8"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0855__a5c484ea295af4db29266b083e1d65b22">If the hardware resources (such as the number of CPU cores and memory size) of the nodes for deploying NodeManagers are different but the NodeManager available hardware resources are set to the same value, the resources may be wasted or the status may be abnormal. You need to change the hardware resource configuration for each NodeManager to ensure that the hardware resources can be fully utilized.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_0855__s974010afef9146ae9dac740d3f4f686e"><h4 class="sectiontitle">Impact on the System</h4><p id="mrs_01_0855__a878929f01da24ed8a777ecabbd8e0149">NodeManager role instances must be restarted for the new configuration to take effect, and the role instances are unavailable during restart.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_0855__s208eb2bfb56047aa928c3ba193d7ed09"><h4 class="sectiontitle">Prerequisites</h4><ul id="mrs_01_0855__ul17457173344113"><li id="mrs_01_0855__li7788153617120">For versions earlier than MRS 1.9.2: You have logged in to MRS Manager.</li><li id="mrs_01_0855__li166194613414">For MRS 1.9.2 or later: You have logged in to the MRS console.</li><li id="mrs_01_0855__li164578336411">Clusters of MRS 3.x or later: You have logged in to Manager.</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_01_0855__sd65b493a21d6478faefec5266189bb75"><h4 class="sectiontitle">Procedure</h4><p id="mrs_01_0855__p1856245413499">For versions earlier than MRS 1.9.2, perform the following operations:</p>
|
|
<ol id="mrs_01_0855__ol17986124911429"><li id="mrs_01_0855__li10986949154210"><span>Log in to MRS Manager and choose <strong id="mrs_01_0855__b13802438417">Services</strong> > <strong id="mrs_01_0855__b1185194334114">Yarn</strong> > <strong id="mrs_01_0855__b68654318417">Instance</strong>.</span></li><li id="mrs_01_0855__li1498610493425"><span>Click <strong id="mrs_01_0855__b6742135019410">NodeManager</strong> in the <strong id="mrs_01_0855__b674225034117">Role</strong> column and go to the <strong id="mrs_01_0855__b16743550144117">Instance Configuration</strong> tab page. Select <strong id="mrs_01_0855__b1966165314210">All</strong> from the <strong id="mrs_01_0855__b441165914212">Basic</strong> drop-down list, and search for the required parameters.</span></li><li id="mrs_01_0855__li89868493421"><span>Enter <strong id="mrs_01_0855__b77282241333">yarn.nodemanager.resource.cpu-vcores</strong> in the search box, and set the number of vCPUs that can be used by NodeManager on the current node. You are advised to set this parameter to 1.5 to 2 times the number of actual logical CPUs on the node. Enter <strong id="mrs_01_0855__b161004269611">yarn.nodemanager.resource.memory-mb</strong> in the search box, and set the physical memory size that can be used by NodeManager on the current node. You are advised to set this parameter to 75% to 90% of the actual physical memory size of the node.</span><p><div class="note" id="mrs_01_0855__note398612490424"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0855__p998618492420">Enter <strong id="mrs_01_0855__b14494439571">yarn.scheduler.maximum-allocation-vcores</strong> in the search box, and set the maximum number of available CPUs in a container. Enter <strong id="mrs_01_0855__b167593361793">yarn.scheduler.maximum-allocation-mb</strong> in the search box, and set the maximum available memory of a container. The instance level cannot be changed. The parameter values need to be changed in the configuration of the Yarn service, and the Yarn service needs to be restarted for the changes to take effect.</p>
|
|
</div></div>
|
|
</p></li><li id="mrs_01_0855__li3986114911425"><span>Click <strong id="mrs_01_0855__b24738117143">Save Configuration</strong>, select <strong id="mrs_01_0855__b15474161131412">Restart the affected services or instances</strong>, and click <strong id="mrs_01_0855__b14826184120145">OK</strong> to restart the NodeManager role instance.</span><p><p id="mrs_01_0855__p209861649144212">After <strong id="mrs_01_0855__b18777162704210">Operation successful</strong> is displayed, click <strong id="mrs_01_0855__b112461659114115">Finish</strong>. The NodeManager role instance is started successfully.</p>
|
|
</p></li></ol>
|
|
<p id="mrs_01_0855__p629812359430">For versions earlier than MRS 3.<em id="mrs_01_0855__i1671583792013">x</em>, perform the following operations:</p>
|
|
<ol id="mrs_01_0855__of644d617274e4685929f9f56a82b94a9"><li id="mrs_01_0855__l18e95b156ef54ef18425d40eec207584"><span>Choose <strong id="mrs_01_0855__b1526141117">Clusters</strong> > <strong id="mrs_01_0855__b16532441211">Active Clusters</strong>, and click a cluster name. Choose <strong id="mrs_01_0855__b1125212211511">Components</strong> > <strong id="mrs_01_0855__b9257122110111">Yarn</strong> > <strong id="mrs_01_0855__b1925810217118">Instances</strong>.</span></li><li id="mrs_01_0855__l9fdcc93f9b2b422787a7dd51f284fa91"><span>Click <strong id="mrs_01_0855__b204501411528">NodeManager</strong> in the <strong id="mrs_01_0855__b689951415219">Role</strong> column and go to the <strong id="mrs_01_0855__b7484113117215">Instance Configuration</strong> tab page. Select <strong id="mrs_01_0855__b1695775425">All</strong> from the <strong id="mrs_01_0855__b2118442380">Basic</strong> drop-down list, and search for the required parameters.</span></li><li id="mrs_01_0855__l0c5f66d5022c48508d8a18485cdc5347"><span>Enter <strong id="mrs_01_0855__b1218648992">yarn.nodemanager.resource.cpu-vcores</strong> in the search box, and set the number of vCPUs that can be used by NodeManager on the current node. You are advised to set this parameter to 1.5 to 2 times the number of actual logical CPUs on the node. Enter <strong id="mrs_01_0855__b1076168269">yarn.nodemanager.resource.memory-mb</strong> in the search box, and set the physical memory size that can be used by NodeManager on the current node. You are advised to set this parameter to 75% to 90% of the actual physical memory size of the node.</span><p><div class="note" id="mrs_01_0855__n2c99031b56f6407cb66874704ed92ecd"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0855__a076e0b6e6c3740a2b81b5a8a3644334f">Enter <strong id="mrs_01_0855__b151140275">yarn.scheduler.maximum-allocation-vcores</strong> in the search box, and set the maximum number of available CPUs in a container. Enter <strong id="mrs_01_0855__b662762412">yarn.scheduler.maximum-allocation-mb</strong> in the search box, and set the maximum available memory of a container. The instance level cannot be changed. The parameter values need to be changed in the configuration of the Yarn service, and the Yarn service needs to be restarted for the changes to take effect.</p>
|
|
</div></div>
|
|
</p></li><li id="mrs_01_0855__l9b6c3d1181594cceb338d11112002711"><span>Click <strong id="mrs_01_0855__b1143411768">Save Configuration</strong>, select <strong id="mrs_01_0855__b1146843314">Restart the affected services or instances</strong>, and click <strong id="mrs_01_0855__b741845254">OK</strong> to restart the NodeManager role instance.</span><p><p id="mrs_01_0855__a67e0fd3883d24d5396e55e9c1d34e8d5"><strong id="mrs_01_0855__b1530010124152">Operation succeeded</strong> is displayed. Click <strong id="mrs_01_0855__b944112951512">Finish</strong>. The NodeManager role instance is started successfully.</p>
|
|
</p></li></ol>
|
|
<p id="mrs_01_0855__p57267471433">For MRS 3.<em id="mrs_01_0855__i15665652112">x</em> or later, perform the following operations:</p>
|
|
<ol id="mrs_01_0855__ol778821044418"><li id="mrs_01_0855__li1178816103449"><span>Choose <strong id="mrs_01_0855__b205162549841647">Cluster</strong> > <em id="mrs_01_0855__i185107742941647">Name of the desired cluster</em> > <strong id="mrs_01_0855__b33464292841647">Services</strong> > <strong id="mrs_01_0855__b46224841441647">Yarn</strong> > <strong id="mrs_01_0855__b73636690341647">Instance</strong>.</span></li><li id="mrs_01_0855__li1978801054415"><span>Click the role instance name corresponding to the node where NodeManager is deployed, switch to <strong id="mrs_01_0855__b194640659541647">Instance Configuration</strong>, and select <strong id="mrs_01_0855__b72081477841647">All Configurations</strong>.</span></li><li id="mrs_01_0855__li378816109445"><span>Enter <strong id="mrs_01_0855__b812146094">yarn.nodemanager.resource.cpu-vcores</strong> in the search box, and set the number of vCPUs that can be used by NodeManager on the current node. You are advised to set this parameter to 1.5 to 2 times the number of actual logical CPUs on the node. Enter <strong id="mrs_01_0855__b168743465841647">yarn.nodemanager.resource.memory-mb</strong> in the search box, and set the physical memory size that can be used by NodeManager on the current node. You are advised to set this parameter to 75% of the actual physical memory size of the node.</span><p><div class="note" id="mrs_01_0855__note1078861074419"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0855__p16788131014414">Enter <strong id="mrs_01_0855__b759593225">yarn.scheduler.maximum-allocation-vcores</strong> in the search box, and set the maximum number of available CPUs in a container. Enter <strong id="mrs_01_0855__b1516639029">yarn.scheduler.maximum-allocation-mb</strong> in the search box, and set the maximum available memory of a container. The instance level cannot be changed. The parameter values need to be changed in the configuration of the Yarn service, and the Yarn service needs to be restarted for the changes to take effect.</p>
|
|
</div></div>
|
|
</p></li><li id="mrs_01_0855__li1678801017447"><span>Click <strong id="mrs_01_0855__b72643058341647">Save</strong>, and then click <strong id="mrs_01_0855__b32533986341647">OK</strong>. to restart the NodeManager role instance.</span><p><p id="mrs_01_0855__p18788410114414">A message is displayed, indicating that the operation is successful. Click <strong id="mrs_01_0855__b9458133002616">Finish</strong>. The NodeManager role instance is started successfully.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0851.html">Using Yarn</a></div>
|
|
</div>
|
|
</div>
|
|
|