forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
34 lines
12 KiB
HTML
34 lines
12 KiB
HTML
<a name="admin_guide_000019"></a><a name="admin_guide_000019"></a>
|
|
|
|
<h1 class="topictitle1">Configuring Cluster Static Resources</h1>
|
|
<div id="body1529658735912"><div class="section" id="admin_guide_000019__section6072977"><h4 class="sectiontitle">Scenario</h4><p id="admin_guide_000019__p54030">You can adjust resource base on <span id="admin_guide_000019__text154091129192818">MRS</span> Manager and customize resource configuration groups if you need to control service resources used on each node in a cluster or the available CPU or I/O quotas on each node at different time segments.</p>
|
|
</div>
|
|
<div class="section" id="admin_guide_000019__section54656798"><h4 class="sectiontitle">Impact on the System</h4><ul id="admin_guide_000019__ul4376441"><li id="admin_guide_000019__li36309281">After a static service pool is configured, the configuration status of affected services is displayed as <strong id="admin_guide_000019__b1769718423188">Expired</strong>. You need to restart the services. Services are unavailable during restart.</li><li id="admin_guide_000019__li58348073">After a static service pool is configured, the maximum number of resources used by each service and role instance cannot exceed the upper limit.</li></ul>
|
|
</div>
|
|
<div class="section" id="admin_guide_000019__section68191141152611"><h4 class="sectiontitle">Procedure</h4><p class="tableheading" id="admin_guide_000019__p28573502"><strong id="admin_guide_000019__b15175134972217">Modify the Resource Adjustment Base</strong></p>
|
|
<ol id="admin_guide_000019__ol52695926102329"><li id="admin_guide_000019__li15192599102226"><span>On <span id="admin_guide_000019__text13851103123013">MRS</span> Manager, choose <strong id="admin_guide_000019__b14604171313">Cluster</strong>, click the name of the target cluster, and choose <strong id="admin_guide_000019__b1746711177314">Static Service Pool Configurations</strong>.</span></li><li id="admin_guide_000019__li2515667102226"><span>Click <strong id="admin_guide_000019__b610117514233">Configuration</strong> in the upper right corner. The page for configuring resource pools is displayed.</span></li><li id="admin_guide_000019__li2442465102226"><span>Change the values of <strong id="admin_guide_000019__b020645619248">CPU (%)</strong> and <strong id="admin_guide_000019__b15433155912410">Memory (%)</strong> in the <strong id="admin_guide_000019__b87641747255">System Resource Adjustment Base</strong> area.</span><p><p class="litext" id="admin_guide_000019__p22641006102226">Modifying the system resource adjustment base changes the maximum physical CPU and memory usage on nodes by services. If multiple services are deployed on the same node, the maximum physical resource usage of all services cannot exceed the adjusted CPU or memory usage.</p>
|
|
</p></li><li id="admin_guide_000019__li53106731102226"><span>Click <strong id="admin_guide_000019__b25921833113016">Next</strong>.</span><p><p class="litext" id="admin_guide_000019__p63621980102226">To modify parameters again, click <strong id="admin_guide_000019__b139251440321">Previous</strong>.</p>
|
|
</p></li></ol>
|
|
<p class="tableheading" id="admin_guide_000019__p12482278102332"><strong id="admin_guide_000019__b1576954873812">Modify the Default Resource Configuration Group</strong></p>
|
|
<ol start="5" id="admin_guide_000019__ol47430557102340"><li id="admin_guide_000019__li64759036102226"><span>Click <strong id="admin_guide_000019__b3257154623212">default</strong>. In the <strong id="admin_guide_000019__b1337212517330">Configure weight</strong> table, set <strong id="admin_guide_000019__b3939171153312">CPU LIMIT(%)</strong>, <strong id="admin_guide_000019__b8743151718338">CPU SHARE(%)</strong>, <strong id="admin_guide_000019__b13822102013318">I/O(%)</strong>, and <strong id="admin_guide_000019__b2839102415335">Memory(%)</strong> for each service.</span><p><div class="note" id="admin_guide_000019__note14651988102226"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="admin_guide_000019__ul61280322102226"><li id="admin_guide_000019__li8198534102226">The sum of <strong id="admin_guide_000019__b7251751167">CPU LIMIT(%)</strong> and <strong id="admin_guide_000019__b4449253769">CPU SHARE(%)</strong> used by all services can exceed 100%.</li><li id="admin_guide_000019__li6677943102226">The sum of <strong id="admin_guide_000019__b473416161113640">I/O(%)</strong> used by all services can exceed 100% but cannot be 0.</li><li id="admin_guide_000019__li60101487102226">The sum of <strong id="admin_guide_000019__b17361611534">Memory(%)</strong> used by all services can be greater than, smaller than, or equal to 100%.</li><li id="admin_guide_000019__li4042471102226"><strong id="admin_guide_000019__b16224112920215">Memory(%)</strong> cannot take effect dynamically and can only be modified in the default configuration group.</li><li id="admin_guide_000019__li36382240102226"><strong id="admin_guide_000019__b10522102516518">CPU LIMIT(%)</strong> is used to configure the ratio of the number of CPU cores that can be used by a service to those can be allocated to related nodes.</li><li id="admin_guide_000019__li59004707102226"><strong id="admin_guide_000019__b1131320221464">CPU SHARE(%</strong>) is used to configure the ratio of the time when a service uses a CPU core to the time when other services use the CPU core. That is, the ratio of time when multiple services compete for the same CPU core.</li></ul>
|
|
</div></div>
|
|
</p></li><li id="admin_guide_000019__li31806388102226"><span>Click <strong id="admin_guide_000019__b126356458513">Generate detailed configurations based on weight configurations</strong>. <span id="admin_guide_000019__text18803177309">MRS</span> Manager generates the actual values of the parameters in the default weight configuration table based on the cluster hardware resources and allocation information.</span></li><li id="admin_guide_000019__li1073914753318"><span>Click <span class="uicontrol" id="admin_guide_000019__uicontrol941223410493"><b>OK</b></span>.</span><p><p id="admin_guide_000019__p11223171313358">In the displayed dialog box, click <strong id="admin_guide_000019__b139301631131311">OK</strong>.</p>
|
|
</p></li></ol>
|
|
<p class="tableheading" id="admin_guide_000019__p4128990510236"><strong id="admin_guide_000019__b14247143125014">Add a Customized Resource Configuration Group</strong></p>
|
|
<ol start="8" id="admin_guide_000019__ol66227710102313"><li id="admin_guide_000019__li751630102226"><span>Determine whether to automatically adjust resource configurations at different time segments.</span><p><ul class="subitemlist" id="admin_guide_000019__ul7540054102226"><li id="admin_guide_000019__li15199592102226">If yes, go to <a href="#admin_guide_000019__li1535819244375">9</a>.</li><li id="admin_guide_000019__li23207405102226">If no, use the default configurations, and no further action is required.</li></ul>
|
|
</p></li><li id="admin_guide_000019__li1535819244375"><a name="admin_guide_000019__li1535819244375"></a><a name="li1535819244375"></a><span>Click <strong id="admin_guide_000019__b10681149205214">Configuration</strong>, change the system resource adjustment base values, and click <strong id="admin_guide_000019__b27471212185319">Next</strong>.</span></li><li id="admin_guide_000019__li2741117193818"><span>Click <strong id="admin_guide_000019__b52787910548">Add</strong> to add a resource configuration group.</span></li><li id="admin_guide_000019__li182163713619"><span>In <strong id="admin_guide_000019__b7822173718369">Step 1: Scheduling Time</strong>, click <strong id="admin_guide_000019__b38221137153615">Configuration</strong>.</span><p><p id="admin_guide_000019__p0434103943616">The page for configuring the time policy is displayed.</p>
|
|
<p class="litext" id="admin_guide_000019__p11067997102226">Modify the following parameters based on service requirements and click <strong id="admin_guide_000019__b164831628576">OK</strong>.</p>
|
|
<ul class="subitemlist" id="admin_guide_000019__ul5339429102226"><li id="admin_guide_000019__li32503111102226"><strong id="admin_guide_000019__b56029351773">Repeat</strong>: If this parameter is selected, the customized resource configuration is applied repeatedly based on the scheduling period. If this parameter is not selected, set the date and time when the configuration of the group of resources can be applied.</li><li id="admin_guide_000019__li24092549102226"><strong id="admin_guide_000019__b17453953265">Repeat Policy</strong>: The available values are <strong id="admin_guide_000019__b331464791014">Daily</strong>, <strong id="admin_guide_000019__b17794174811106">Weekly</strong>, and <strong id="admin_guide_000019__b16215205051012">Monthly</strong>. This parameter is valid only when <strong id="admin_guide_000019__b94141619537">Repeat</strong> is selected.</li><li id="admin_guide_000019__li15506350102226"><strong id="admin_guide_000019__b1695161361115">On</strong>: indicates the time period between the start time and end time when the resource configuration is applied. Set a unique time range. If the time range overlaps with that of an existing group of resource configuration, the time range cannot be saved.</li></ul>
|
|
<div class="note" id="admin_guide_000019__note30367996102226"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="admin_guide_000019__ul48113464102226"><li id="admin_guide_000019__li48054866102226">The default group of resource configuration takes effect in all undefined time segments.</li><li id="admin_guide_000019__li29840614102226">The newly added resource group is a parameter set that takes effect dynamically in a specified time range.</li><li id="admin_guide_000019__li130074102226">The newly added resource group can be deleted. A maximum of four resource configuration groups that take effect dynamically can be added.</li><li id="admin_guide_000019__li1170671102226">Select a repetition policy. If the end time is earlier than the start time, the resource configuration ends in the next day by default. For example, if a validity period ranges from 22:00 to 06:00, the customized resource configuration takes effect from 22:00 on the current day to 06:00 on the next day.</li><li id="admin_guide_000019__li10536047102226">If the repetition policy types of multiple configuration groups are different, the time ranges can overlap. The policy types are listed as follows by priority from low to high: daily, weekly, and monthly. The following is an example. There are two resource configuration groups using the monthly and daily policies, respectively. Their application time ranges in a day overlap as follows: 04:00 to 07:00 and 06:00 to 08:00. In this case, the configuration of the group that uses the monthly policy prevails.</li><li id="admin_guide_000019__li27715561102226">If the repetition policy types of multiple resource configuration groups are the same, the time ranges of different dates can overlap. For example, if there are two weekly scheduling groups, you can set the same time range on different day for them, such as to 04:00 to 07:00, on Monday and Wednesday, respectively.</li></ul>
|
|
</div></div>
|
|
</p></li><li id="admin_guide_000019__li34417290102226"><span>Modify the resource configuration of each service in <strong id="admin_guide_000019__b04151214123913">Step 2: Weight Configuration</strong>.</span></li><li id="admin_guide_000019__li849118121552"><span>Click <strong id="admin_guide_000019__b1307974201">Generate detailed configuration</strong>. <span id="admin_guide_000019__text11912182743016">MRS</span> Manager generates the actual values of the parameters in the default weight configuration table based on the cluster hardware resources and allocation information.</span></li><li id="admin_guide_000019__li1754913129422"><span>Click <span class="uicontrol" id="admin_guide_000019__uicontrol78649213398"><b>OK</b></span>.</span><p><p id="admin_guide_000019__p1242616219427">In the displayed dialog box, click <strong id="admin_guide_000019__b686418145719">OK</strong>.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="admin_guide_000017.html">Managing Static Service Pools</a></div>
|
|
</div>
|
|
</div>
|
|
|