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>
96 lines
15 KiB
HTML
96 lines
15 KiB
HTML
<a name="mrs_01_2320"></a><a name="mrs_01_2320"></a>
|
|
|
|
<h1 class="topictitle1">Adjusting the Number of Worker Nodes</h1>
|
|
<div id="body32001227"><div class="section" id="mrs_01_2320__en-us_topic_0000001219029547_section16689919163913"><h4 class="sectiontitle">Scenarios</h4><p id="mrs_01_2320__en-us_topic_0000001219029547_p791642113309">On the <span id="mrs_01_2320__en-us_topic_0000001219029547_text12191179561">HetuEngine</span> web UI, you can adjust the number of worker nodes for a compute instance. In this way, resources can be expanded for the compute instance when resources are insufficient and released when the resources are idle. The number of workers can be adjusted manually or automatically.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_2320__en-us_topic_0000001219029547_section1019346135418"><h4 class="sectiontitle">Prerequisites</h4><p id="mrs_01_2320__en-us_topic_0000001219029547_p35121815546">You have created a user for accessing the <span id="mrs_01_2320__en-us_topic_0000001219029547_text853134201015">HetuEngine</span> web UI. For details, see <a href="mrs_01_1714.html">Creating a HetuEngine User</a>.</p>
|
|
<div class="note" id="mrs_01_2320__en-us_topic_0000001219029547_note67121221966"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="mrs_01_2320__en-us_topic_0000001219029547_ul177121321261"><li id="mrs_01_2320__en-us_topic_0000001219029547_li197121126620">When an instance is being scaled in or out, the original services are not affected and the instance can still be used.</li><li id="mrs_01_2320__en-us_topic_0000001219029547_li137126210616">Instance scale-in/out is delayed to implement smooth adjustment of resource consumption within a long period of time. It cannot respond to the requirements of running SQL tasks for available resources in real time.</li><li id="mrs_01_2320__en-us_topic_0000001219029547_li171219212615">After the instance scale-in/out function is enabled, restarting the HSBroker and Yarn services affects the scale-in/out function. If you need to restart the services, you are advised to disable the instance scale-in/out function first.</li><li id="mrs_01_2320__en-us_topic_0000001219029547_li2314961862">Before scaling out a compute instance, ensure that the current queue has sufficient resources. Otherwise, the scale-out cannot reach the expected result and subsequent scale-in operations will be affected.</li><li id="mrs_01_2320__en-us_topic_0000001219029547_li1473513682411">To perform manual scale-in/out, log in to Manager, choose <strong id="mrs_01_2320__en-us_topic_0000001219029547_b3583824174414">HetuEngine</strong> > <strong id="mrs_01_2320__en-us_topic_0000001219029547_b20833102794411">Configurations</strong> > <strong id="mrs_01_2320__en-us_topic_0000001219029547_b9470938184417">All Configurations</strong>, search for <strong id="mrs_01_2320__en-us_topic_0000001219029547_b03331452448">application.customized.properties</strong>, and add the <strong id="mrs_01_2320__en-us_topic_0000001219029547_b1964175313445">yarn.hetuserver.engine.flex.timeout.sec</strong> parameter. The default value is <strong id="mrs_01_2320__en-us_topic_0000001219029547_b7698145994412">300</strong> (in seconds).</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="mrs_01_2320__en-us_topic_0000001219029547_section320585716541"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_2320__en-us_topic_0000001219029547_ol49818246552"><li id="mrs_01_2320__en-us_topic_0000001219029547_li59811724175512"><span>Log in to FusionInsight Manager as a user who can access the <span id="mrs_01_2320__en-us_topic_0000001219029547_text1238918521018">HetuEngine</span> web UI and choose <strong id="mrs_01_2320__en-us_topic_0000001219029547_b479111345391">Cluster</strong> > <strong id="mrs_01_2320__en-us_topic_0000001219029547_b479273413392">Services</strong> > <strong id="mrs_01_2320__en-us_topic_0000001219029547_b12793203417395"><span id="mrs_01_2320__en-us_topic_0000001219029547_text15618615108">HetuEngine</span></strong>. The <strong id="mrs_01_2320__en-us_topic_0000001219029547_b1841819094013"><span id="mrs_01_2320__en-us_topic_0000001219029547_text1359711761019">HetuEngine</span></strong> service page is displayed.</span></li><li id="mrs_01_2320__en-us_topic_0000001219029547_li398116246558"><span>In the <strong id="mrs_01_2320__en-us_topic_0000001219029547_b1165516157402">Basic Information</strong> area on the <strong id="mrs_01_2320__en-us_topic_0000001219029547_b5523105114020">Dashboard</strong> tab page, click the link next to <strong id="mrs_01_2320__en-us_topic_0000001219029547_b1331193716406">HSConsole WebUI</strong>. The HSConsole page is displayed.</span></li><li id="mrs_01_2320__en-us_topic_0000001219029547_li330665915563"><span>Click <strong id="mrs_01_2320__en-us_topic_0000001219029547_b33248489417">Compute Instance</strong>.</span></li><li id="mrs_01_2320__en-us_topic_0000001219029547_li10674648175716"><span>Locate the row that contains the target instance, and click <strong id="mrs_01_2320__en-us_topic_0000001219029547_b1938702414">Configure</strong> in the <strong id="mrs_01_2320__en-us_topic_0000001219029547_b133315215416">Operation</strong> column.</span></li><li id="mrs_01_2320__en-us_topic_0000001219029547_li11621853515"><span>If manual scale-in/out is required, change the number of workers on the configuration page and click <strong id="mrs_01_2320__en-us_topic_0000001219029547_b1597221112217">OK</strong>. The compute instance enters the <strong id="mrs_01_2320__en-us_topic_0000001219029547_b49771112029">SCALING OUT</strong> or <strong id="mrs_01_2320__en-us_topic_0000001219029547_b129811211227">SCALING IN</strong> state. After the scale-in/out is complete, the compute instance status changes to <strong id="mrs_01_2320__en-us_topic_0000001219029547_b8985151119214">RUNNING</strong>.</span></li><li id="mrs_01_2320__en-us_topic_0000001219029547_li298117245557"><span>If automatic scale-in/out is required, choose <strong id="mrs_01_2320__en-us_topic_0000001219029547_b13780836123018">Configure Instance</strong> > <strong id="mrs_01_2320__en-us_topic_0000001219029547_b9254154083017">Advanced Configuration</strong> and click the <strong id="mrs_01_2320__en-us_topic_0000001219029547_b270395714309">Scaling</strong> switch.</span><p><ul id="mrs_01_2320__en-us_topic_0000001219029547_ul2590191655912"><li id="mrs_01_2320__en-us_topic_0000001219029547_li1659017168595"><strong id="mrs_01_2320__en-us_topic_0000001219029547_b02231331426">OFF</strong>: Disable dynamic scale-in/out.</li><li id="mrs_01_2320__en-us_topic_0000001219029547_li16789185165910"><strong id="mrs_01_2320__en-us_topic_0000001219029547_b19413107154212">ON</strong>: Enable dynamic scale-in/out. For details, see <a href="#mrs_01_2320__en-us_topic_0000001219029547_table10789151105917">Table 1</a>. <a href="#mrs_01_2320__en-us_topic_0000001219029547_fig1841055911467">Figure 1</a> shows the configuration page.
|
|
<div class="tablenoborder"><a name="mrs_01_2320__en-us_topic_0000001219029547_table10789151105917"></a><a name="en-us_topic_0000001219029547_table10789151105917"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_2320__en-us_topic_0000001219029547_table10789151105917" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters for dynamic scale-in/out</caption><thead align="left"><tr id="mrs_01_2320__en-us_topic_0000001219029547_row9788135114591"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.2.6.2.1.2.4.2.4.1.1"><p id="mrs_01_2320__en-us_topic_0000001219029547_p6788451195917">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.2.6.2.1.2.4.2.4.1.2"><p id="mrs_01_2320__en-us_topic_0000001219029547_p478845125913">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.2.6.2.1.2.4.2.4.1.3"><p id="mrs_01_2320__en-us_topic_0000001219029547_p9788751205916">Example Value</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_2320__en-us_topic_0000001219029547_row10788351105913"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.1 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p9788151135910">Scale-out Threshold</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.2 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p97888512596">When the average value of the instance resource usage in the scale-in/out decision-making period exceeds the threshold, the instance starts to scale out.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.3 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p6788105117597">0.9</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2320__en-us_topic_0000001219029547_row878845115916"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.1 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p117881151145918">Scale-out Size</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.2 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p107882051115916">Number of Workers to be added each time when the instance starts to scale out.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.3 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p147881751195912">1</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2320__en-us_topic_0000001219029547_row14789175118594"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.1 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p12788165105912">Scale-out Decision Period</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.2 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p18788155155917">Interval for determining whether to scale out an instance. Unit: second</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.3 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p1478814514590">200</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2320__en-us_topic_0000001219029547_row1178925114591"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.1 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p1078920511598">Scale-in Threshold</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.2 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p87891451105912">When the average value of the instance resource usage in the scale-in/out decision-making period exceeds the threshold, the instance starts to scale in.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.3 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p078975117592">0.1</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2320__en-us_topic_0000001219029547_row14789451135916"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.1 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p9789951115911">Scale-in Size</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.2 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p478905105910">Number of Workers to be reduced each time when the instance starts to scale in.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.3 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p167892512595">1</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2320__en-us_topic_0000001219029547_row14789205175913"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.1 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p1478915115912">Scale-in Decision Period</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.2 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p1378912515591">Interval for determining whether to scale in an instance. Unit: second</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.3 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p10789175185918">300</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2320__en-us_topic_0000001219029547_row179501211113911"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.1 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p5950211153915">Load Collection Period</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.2 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p3950511133910">Interval for collecting instance load information. Unit: second</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.3 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p18950711193911">10</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2320__en-us_topic_0000001219029547_row12204121615391"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.1 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p102041616183917">Scale-out Timeout Period</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.2 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p220451617392">Timeout period of the scale-out operation. Unit: second</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.3 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p1720412166393">400</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2320__en-us_topic_0000001219029547_row1266814219395"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.1 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p18668172133912">Scale-in Timeout Period</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.2 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p466892173910">Timeout period of the scale-in operation. Unit: second</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.6.2.1.2.4.2.4.1.3 "><p id="mrs_01_2320__en-us_topic_0000001219029547_p76681021163912">600</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="fignone" id="mrs_01_2320__en-us_topic_0000001219029547_fig1841055911467"><a name="mrs_01_2320__en-us_topic_0000001219029547_fig1841055911467"></a><a name="en-us_topic_0000001219029547_fig1841055911467"></a><span class="figcap"><b>Figure 1 </b>Scaling out/in an instance</span><br><span><img id="mrs_01_2320__en-us_topic_0000001219029547_image1410359124616" src="en-us_image_0000001295899852.png"></span></div>
|
|
</li></ul>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1729.html">Managing Compute Instances</a></div>
|
|
</div>
|
|
</div>
|
|
|