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

65 lines
6.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<a name="mrs_01_24853"></a><a name="mrs_01_24853"></a>
<h1 class="topictitle1">Accelerating Merge Operations</h1>
<div id="body0000001583435161"><p id="mrs_01_24853__p27451754183618">To accelerate background tasks, adjust the ZooKeeper service configuration first. Otherwise, the ClickHouse service and background tasks will be abnormal due to insufficient ZooKeeper resources such as znodes.</p>
<ol id="mrs_01_24853__ol3900488113"><li id="mrs_01_24853__li173914397260">Adjust the ZooKeeper configuration. Log in to FusionInsight Manager and choose <strong id="mrs_01_24853__b72193134812">Cluster</strong> &gt; <strong id="mrs_01_24853__b04342157481">Services</strong> &gt; <strong id="mrs_01_24853__b97571913485">Zookeeper</strong>. Click <strong id="mrs_01_24853__b12934404486">Configurations</strong> then <strong id="mrs_01_24853__b1345849204810">All Configurations</strong>. Click <strong id="mrs_01_24853__b39932004916">quorumpeer</strong> &gt; <strong id="mrs_01_24853__b112753415495">System</strong>, change the value of <strong id="mrs_01_24853__b524551434913">GC_OPTS</strong> according to the following table, save the configuration, and roll restart the ZooKeeper service.
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24853__table680165614295" frame="border" border="1" rules="all"><thead align="left"><tr id="mrs_01_24853__row880220563295"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.1.9.1.4.1.1"><p id="mrs_01_24853__p128676112304">Configuration Item</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.1.9.1.4.1.2"><p id="mrs_01_24853__p986713114304">Reference Value</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.1.9.1.4.1.3"><p id="mrs_01_24853__p158673173015">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_24853__row1580225614294"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.1.9.1.4.1.1 "><p id="mrs_01_24853__p16802256142918">GC_OPTS</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.1.9.1.4.1.2 "><p id="mrs_01_24853__p158021156122918">Xmx = (Memory size of master nodes 16 GB) x 0.65 (conservative estimation)</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.1.9.1.4.1.3 "><p id="mrs_01_24853__p1480217566299">JVM parameter used for garbage collection (GC). This parameter is valid only when <strong id="mrs_01_24853__b13619950111417">GC_PROFILE</strong> is set to <strong id="mrs_01_24853__b962085014145">custom</strong>. Ensure that the <strong id="mrs_01_24853__b872165381413">GC_OPT</strong> parameter is set correctly. Otherwise, the process will fail to be started.</p>
<div class="caution" id="mrs_01_24853__note240313915302"><span class="cautiontitle"> CAUTION: </span><div class="cautionbody"><p id="mrs_01_24853__p1740313394307">Exercise caution when modifying this item. If this parameter is set incorrectly, the service will be unavailable.</p>
</div></div>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="mrs_01_24853__li1929242015312">Adjust the ClickHouse configuration. On FusionInsight Manager, choose <strong id="mrs_01_24853__b106541417191512">Cluster</strong> &gt; <strong id="mrs_01_24853__b312918288152">Services</strong> &gt; <strong id="mrs_01_24853__b15616163513150">ClickHouse</strong>. Click <strong id="mrs_01_24853__b13881245111514">Configurations</strong> then <strong id="mrs_01_24853__b201671529155">All Configurations</strong>. Click <strong id="mrs_01_24853__b9388199121614">ClickHouse</strong> &gt; <strong id="mrs_01_24853__b1518231711163">Zookeeper</strong>, modify the following parameters, and save the configuration. You do not need to restart the service.
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24853__table18109164416372" frame="border" border="1" rules="all"><thead align="left"><tr id="mrs_01_24853__row711018442372"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.8.1.4.1.1"><p id="mrs_01_24853__p10110344193715">Configuration Item</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.8.1.4.1.2"><p id="mrs_01_24853__p811004443715">Reference Value</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.2.8.1.4.1.3"><p id="mrs_01_24853__p829285343718">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_24853__row6110134453716"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.8.1.4.1.1 "><p id="mrs_01_24853__p15110184416376">clickhouse.zookeeper.quota.node.conut</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.8.1.4.1.2 "><p id="mrs_01_24853__p0110104423714">Xmx/4 GB x 1,500,000</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.8.1.4.1.3 "><p id="mrs_01_24853__p525254963817">Node quantity quota of ClickHouse in the top directory on ZooKeeper.</p>
<p id="mrs_01_24853__p11252204913815">This parameter cannot be set to <strong id="mrs_01_24853__b109285213244">0</strong>, but can be set to a minimum value of <strong id="mrs_01_24853__b39265242416">1</strong>. <strong id="mrs_01_24853__b199316521245">1</strong> indicates that there is no limit on the number of ClickHouse nodes in the top directory.</p>
<div class="caution" id="mrs_01_24853__note7158105573718"><span class="cautiontitle"> CAUTION: </span><div class="cautionbody"><p id="mrs_01_24853__p9292175614378">If the quantity quota is less than the actual value of the current ZooKeeper directory, the configuration can be saved but does not take effect and an alarm is reported on the GUI.</p>
</div></div>
</td>
</tr>
<tr id="mrs_01_24853__row1111034433712"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.8.1.4.1.1 "><p id="mrs_01_24853__p18110104411376">clickhouse.zookeeper.quota.size</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.8.1.4.1.2 "><p id="mrs_01_24853__p611010449371">Xmx/4 GB x 1 GB</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.8.1.4.1.3 "><p id="mrs_01_24853__p22921053193711">Capacity quota of ClickHouse in the top directory on ZooKeeper.</p>
<div class="caution" id="mrs_01_24853__note1351862103814"><span class="cautiontitle"> CAUTION: </span><div class="cautionbody"><p id="mrs_01_24853__p15188220388">If the quantity quota is less than the actual value of the current ZooKeeper directory, the configuration can be saved but does not take effect and an alarm is reported on the GUI.</p>
</div></div>
</td>
</tr>
</tbody>
</table>
</div>
</li></ol>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_24848.html">ClickHouse Performance Tuning</a></div>
</div>
</div>