Yang, Tong 48706b7552 MRS COMP-LTS 320-lts.1 version
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2024-04-12 12:51:10 +00:00

21 lines
3.0 KiB
HTML

<a name="mrs_01_24786"></a><a name="mrs_01_24786"></a>
<h1 class="topictitle1">Modifying the Memory Limit of ClickHouse on a ClickHouseServer Node</h1>
<div id="body0000001583555421"><div class="note" id="mrs_01_24786__note4994174113112"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_24786__p1699544112110">This section applies only to MRS 3.2.0 or later.</p>
</div></div>
<div class="section" id="mrs_01_24786__section1955711561129"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_24786__p117854355365">Modify the maximum memory allowed for ClickHouse on a ClickHouseServer node to ensure the normal use of other service instances on the node.</p>
</div>
<div class="section" id="mrs_01_24786__section63881481331"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_24786__ol9762121219411"><li id="mrs_01_24786__li1576519122419"><span>Log in to FusionInsight Manager and choose <strong id="mrs_01_24786__b1171012155531">Cluster</strong> &gt; <strong id="mrs_01_24786__b134569192531">Services</strong> &gt; <strong id="mrs_01_24786__b2474102335314">ClickHouse</strong>. Click <strong id="mrs_01_24786__b51800352534">Configuration</strong> then <strong id="mrs_01_24786__b225414375316">All Configurations</strong>, click <strong id="mrs_01_24786__b198611155412">ClickHouseServer(Role)</strong>, and select <strong id="mrs_01_24786__b1732201745413">Performance</strong>.</span><p><p id="mrs_01_24786__p14936155614294"><span><img id="mrs_01_24786__image1493605682916" src="en-us_image_0000001583316317.png"></span></p>
</p></li><li id="mrs_01_24786__li13765111217418"><span>Change the value of <strong id="mrs_01_24786__b752414295410">max_server_memory_usage_to_ram_ratio</strong> as required and save the configuration.</span><p><div class="note" id="mrs_01_24786__note1964719503911"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="mrs_01_24786__ul7293106113317"><li id="mrs_01_24786__li12293146133319">Restart is not required for the modification to take effect.</li><li id="mrs_01_24786__li152940693314">The value ranges from 0 to 1, indicating the ratio of the total physical RAM of the server that can be used for ClickHouse. For example, if the physical memory of the server is 10 GB and the value of this parameter is <strong id="mrs_01_24786__b10618452728">0.9</strong>, the available memory of the ClickHouse service on the current server is 9 GB (10 GB x 0.9). If the value of this parameter is <strong id="mrs_01_24786__b177620416319">0</strong>, it indicates that the memory is not limited and the ClickHouse service can use all the physical memory of the server. The value of this parameter can contain a maximum of two decimal places.</li></ul>
</div></div>
</p></li></ol>
</div>
<p id="mrs_01_24786__p8060118"></p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_24784.html">ClickHouse Multi-Tenancy</a></div>
</div>
</div>