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

60 lines
5.3 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_24790"></a><a name="mrs_01_24790"></a>
<h1 class="topictitle1">ClickHouse Multi-Tenancy Overview</h1>
<div id="body0000001532835278"><div class="note" id="mrs_01_24790__note7117736115710"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_24790__p11118236185717">This section applies only to MRS 3.2.0 or later.</p>
</div></div>
<div class="section" id="mrs_01_24790__section57161438668"><h4 class="sectiontitle">ClickHouse Multi-Tenancy</h4><p id="mrs_01_24790__p1320517498322">The ClickHouse multi-tenancy feature enables you to manage cluster resources through the user &gt; tenant role &gt; resource profile management model. Currently, memory and CPU priority management is supported. The following figure shows a multi-tenancy model.</p>
<p id="mrs_01_24790__p1356418321149"><span><img id="mrs_01_24790__image656417323144" src="en-us_image_0000001532836094.png"></span></p>
<p id="mrs_01_24790__p16835133994011">On the service configuration and tenant management pages of FusionInsight Manager, you can configure memory quotas for services, create tenants, associate ClickHouse services, bind logical clusters, set available memory and CPU priorities for tenants, and associate tenants with users. The following figure illustrates the role association between Manager and ClickHouse.</p>
<p id="mrs_01_24790__p10836181614319"><span><img id="mrs_01_24790__image683619161315" src="en-us_image_0000001532996022.png"></span></p>
<p id="mrs_01_24790__p239716123454">The following table lists the resource configurations supported by the current version.</p>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24790__table6695104794813" frame="border" border="1" rules="all"><thead align="left"><tr id="mrs_01_24790__row10695647164819"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.1.5.1.1"><p id="mrs_01_24790__p106951147164810">Resource</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.1.5.1.2"><p id="mrs_01_24790__p1517016615502">Value Range</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.3.1.5.1.3"><p id="mrs_01_24790__p36957470482">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.3.1.5.1.4"><p id="mrs_01_24790__p669554713489">Remarks</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_24790__row10695124711484"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.1.5.1.1 "><p id="mrs_01_24790__p196951847144810">Service-level memory resource limit</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.1.5.1.2 "><p id="mrs_01_24790__p6170365502">01</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.3.1.5.1.3 "><p id="mrs_01_24790__p18695174713486">Percentage of available ClickHouse memory to total server memory</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.3.1.5.1.4 "><p id="mrs_01_24790__p186951447184811">For example, if the physical memory of the server is 10 GB and the limit is set to <strong id="mrs_01_24790__b12871149175816">0.9</strong>, the available memory of the ClickHouse service on the current server is 9 GB (10 GB x 0.9).</p>
</td>
</tr>
<tr id="mrs_01_24790__row19695247184813"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.1.5.1.1 "><p id="mrs_01_24790__p4695647144815">Tenant-level memory resource limit</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.1.5.1.2 "><p id="mrs_01_24790__p171701167508">0%100%</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.3.1.5.1.3 "><p id="mrs_01_24790__p18695154714485">Percentage of the available memory of the current tenant in ClickHouseServer</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.3.1.5.1.4 "><p id="mrs_01_24790__p1869517479481">If this limit is set to <strong id="mrs_01_24790__b8655171110163">80</strong>, the total memory that can be used by the current tenant is calculated as follows: Total memory that can be used by the service x 80%</p>
</td>
</tr>
<tr id="mrs_01_24790__row769514472487"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.1.5.1.1 "><p id="mrs_01_24790__p2695134720486">Tenant-level CPU priority</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.1.5.1.2 "><p id="mrs_01_24790__p11701168503">20 to 19</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.3.1.5.1.3 "><p id="mrs_01_24790__p15695447194814">NICE value of the OS associated with this value. A smaller value indicates a higher CPU priority of the process.</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.3.1.5.1.4 "><p id="mrs_01_24790__p26952478480">This feature depends on <strong id="mrs_01_24790__b4595165182117">CAP_SYS_NICE</strong> of the OS. By default, this feature is disabled after the cluster is installed. To use this feature, enable it by referring to <a href="mrs_01_24789.html">Enabling the CPU Priority Feature</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</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>