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>
29 lines
4.1 KiB
HTML
29 lines
4.1 KiB
HTML
<a name="mrs_01_1082"></a><a name="mrs_01_1082"></a>
|
|
|
|
<h1 class="topictitle1">Flume Client Cgroup Usage Guide</h1>
|
|
<div id="body1590647392457"><div class="section" id="mrs_01_1082__section0523550114720"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_1082__p286914163376">This section describes how to join and log out of a cgroup, query the cgroup status, and change the cgroup CPU threshold.</p>
|
|
<p id="mrs_01_1082__p712492310251">This section applies to MRS 3.<em id="mrs_01_1082__i1178614455359">x</em> or later.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1082__section453314110489"><h4 class="sectiontitle">Procedure</h4><ul id="mrs_01_1082__ul1075520295418"><li id="mrs_01_1082__li13755182911413"><strong id="mrs_01_1082__b895220487352">Join Cgroup</strong><p id="mrs_01_1082__p3611735566">Assume that the Flume client installation path is <strong id="mrs_01_1082__b1719965220359">/opt/FlumeClient</strong>, and the cgroup CPU threshold is 50%. Run the following command to join a cgroup:</p>
|
|
<p id="mrs_01_1082__p3611735560"><strong id="mrs_01_1082__b1461230568">cd /opt/FlumeClient/fusioninsight-flume-1.9.0/bin</strong></p>
|
|
<p id="mrs_01_1082__p176123135615"><strong id="mrs_01_1082__b14611038565">./flume-manage.sh cgroup join 50</strong></p>
|
|
<div class="note" id="mrs_01_1082__note171621611583"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="mrs_01_1082__ul6315416145810"><li id="mrs_01_1082__li56516113314">This command can be used to join a cgroup and change the cgroup CPU threshold.</li><li id="mrs_01_1082__li23957211585">The value of the CPU threshold of a cgroup ranges from 1 to 100 x <em id="mrs_01_1082__i1378315812366">N</em>. <em id="mrs_01_1082__i16514181183715">N</em> indicates the number of CPU cores.</li></ul>
|
|
</div></div>
|
|
</li><li id="mrs_01_1082__li1996755111559"><strong id="mrs_01_1082__b9966161015373">Check Cgroup status</strong><p id="mrs_01_1082__p0484136185612">Assume that the Flume client installation path is <strong id="mrs_01_1082__b13959346143710">/opt/FlumeClient</strong>. Run the following commands to query the cgroup status:</p>
|
|
<p id="mrs_01_1082__p15268144613560"><strong id="mrs_01_1082__b318817019574">cd /opt/FlumeClient/fusioninsight-flume-1.9.0/bin</strong></p>
|
|
<p id="mrs_01_1082__p07966014577"><strong id="mrs_01_1082__b3881198135719">./flume-manage.sh cgroup status</strong></p>
|
|
</li><li id="mrs_01_1082__li8611437569"><strong id="mrs_01_1082__b415418522376">Exit Cgroup</strong><p id="mrs_01_1082__p6423124216591">Assume that the Flume client installation path is <strong id="mrs_01_1082__b111351619103819">/opt/FlumeClient</strong>. Run the following commands to exit cgroup:</p>
|
|
<p id="mrs_01_1082__p194311441155911"><strong id="mrs_01_1082__b1343114125912">cd /opt/FlumeClient/fusioninsight-flume-1.9.0/bin</strong></p>
|
|
<p id="mrs_01_1082__p64313411595"><strong id="mrs_01_1082__b18431134145917">./flume-manage.sh cgroup exit</strong></p>
|
|
<div class="note" id="mrs_01_1082__note155071421142718"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="mrs_01_1082__ul224913274276"><li id="mrs_01_1082__li16249132714275">After the client is installed, the default cgroup is automatically created. If the <strong id="mrs_01_1082__b0105926163811">-s</strong> parameter is not configured during client installation, the default value <strong id="mrs_01_1082__b610972613385">-1</strong> is used. The default value indicates that the agent process is not restricted by the CPU usage.</li><li id="mrs_01_1082__li5761228173217">Joining or exiting a cgroup does not affect the agent process. Even if the agent process is not started, the joining or exiting operation can be performed successfully, and the operation will take effect after the next startup of the agent process.</li><li id="mrs_01_1082__li1661918254486">After the client is uninstalled, the cgroups created during the client installation are automatically deleted.</li></ul>
|
|
</div></div>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0390.html">Using Flume</a></div>
|
|
</div>
|
|
</div>
|
|
|