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

163 lines
24 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_24791"></a><a name="mrs_01_24791"></a>
<h1 class="topictitle1">Managing ClickHouse Tenants</h1>
<div id="body0000001583435157"><div class="note" id="mrs_01_24791__note7117736115710"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_24791__p11118236185717">This section applies only to MRS 3.2.0 or later.</p>
</div></div>
<div class="section" id="mrs_01_24791__en-us_topic_0165590104_sd6806c2b41eb48158d8fd97fb4ae77c5"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_24791__p65151203344">On FusionInsight Manager, cluster administrators can create a ClickHouse tenant and associate it with a logical cluster. After a system user is bound to the tenant, the system user has the permissions on the logical cluster of the tenant.</p>
</div>
<div class="section" id="mrs_01_24791__section552518236108"><a name="mrs_01_24791__section552518236108"></a><a name="section552518236108"></a><h4 class="sectiontitle">Creating a ClickHouse Tenant</h4><ol id="mrs_01_24791__ol134228243298"><li id="mrs_01_24791__li542218247295"><span>Log in to FusionInsight Manager and choose <strong id="mrs_01_24791__b193776613532">Tenant Resources</strong>.</span></li><li id="mrs_01_24791__li9423102422912"><span>Click <span><img id="mrs_01_24791__image8423162432911" src="en-us_image_0000001583435997.png"></span>. On the page that is displayed, configure tenant attributes according to <a href="#mrs_01_24791__table6423224172911">Table 1</a>.</span><p>
<div class="tablenoborder"><a name="mrs_01_24791__table6423224172911"></a><a name="table6423224172911"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24791__table6423224172911" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Tenant parameters</caption><thead align="left"><tr id="mrs_01_24791__row1242302417298"><th align="left" class="cellrowborder" valign="top" width="32.32%" id="mcps1.3.3.2.2.2.1.2.3.1.1"><p id="mrs_01_24791__p9423112416295">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="67.67999999999999%" id="mcps1.3.3.2.2.2.1.2.3.1.2"><p id="mrs_01_24791__p114231624122919">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_24791__row1242420243295"><td class="cellrowborder" valign="top" width="32.32%" headers="mcps1.3.3.2.2.2.1.2.3.1.1 "><p id="mrs_01_24791__p11424112492916">Cluster</p>
</td>
<td class="cellrowborder" valign="top" width="67.67999999999999%" headers="mcps1.3.3.2.2.2.1.2.3.1.2 "><p id="mrs_01_24791__p9424182492912">Cluster for which you want to create a tenant</p>
</td>
</tr>
<tr id="mrs_01_24791__row1542414242299"><td class="cellrowborder" valign="top" width="32.32%" headers="mcps1.3.3.2.2.2.1.2.3.1.1 "><p id="mrs_01_24791__p1642472411296">Name</p>
</td>
<td class="cellrowborder" valign="top" width="67.67999999999999%" headers="mcps1.3.3.2.2.2.1.2.3.1.2 "><ul id="mrs_01_24791__ul042413240296"><li id="mrs_01_24791__li74246247298">Name of the current tenant. The value consists of 3 to 50 characters, including numbers, letters, and underscores (_).</li><li id="mrs_01_24791__li164249243290">Plan a tenant name based on service requirements. The name cannot be the same as that of a role, HDFS directory, or Yarn queue that exists in the current cluster.</li></ul>
</td>
</tr>
<tr id="mrs_01_24791__row174244248290"><td class="cellrowborder" valign="top" width="32.32%" headers="mcps1.3.3.2.2.2.1.2.3.1.1 "><p id="mrs_01_24791__p1424142418294">Tenant Resource Type</p>
</td>
<td class="cellrowborder" valign="top" width="67.67999999999999%" headers="mcps1.3.3.2.2.2.1.2.3.1.2 "><div class="p" id="mrs_01_24791__p58541411153015">Select <strong id="mrs_01_24791__b13578510115819">Leaf Tenant</strong><strong id="mrs_01_24791__b499451415816"> Resource</strong>.<div class="note" id="mrs_01_24791__note1820319397521"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="mrs_01_24791__p20203139185216">Create a ClickHouse tenant. <strong id="mrs_01_24791__b0858183282413">Tenant</strong><strong id="mrs_01_24791__b185803210241"> Resource</strong><strong id="mrs_01_24791__b1585843222412"> Type</strong> can only be <strong id="mrs_01_24791__b16103123712420">Leaf Tenant</strong>.</p>
</div></div>
</div>
</td>
</tr>
<tr id="mrs_01_24791__row13424142422913"><td class="cellrowborder" valign="top" width="32.32%" headers="mcps1.3.3.2.2.2.1.2.3.1.1 "><p id="mrs_01_24791__p0424192415291">Computing Resource</p>
</td>
<td class="cellrowborder" valign="top" width="67.67999999999999%" headers="mcps1.3.3.2.2.2.1.2.3.1.2 "><p id="mrs_01_24791__p154241624132914">Dynamic compute resources for the current tenant</p>
<ul id="mrs_01_24791__ul16424624172917"><li id="mrs_01_24791__li1042422482917">When <strong id="mrs_01_24791__b17208340185910">Yarn</strong> is selected, the system automatically creates a queue in Yarn and the queue is named the same as the tenant name.</li><li id="mrs_01_24791__li6425624132915">If <strong id="mrs_01_24791__b5882144417599">Yarn</strong> is not selected, the system does not automatically create a queue.</li></ul>
</td>
</tr>
<tr id="mrs_01_24791__row44252243292"><td class="cellrowborder" valign="top" width="32.32%" headers="mcps1.3.3.2.2.2.1.2.3.1.1 "><p id="mrs_01_24791__p5425172402916">Configuration Mode</p>
</td>
<td class="cellrowborder" valign="top" width="67.67999999999999%" headers="mcps1.3.3.2.2.2.1.2.3.1.2 "><p id="mrs_01_24791__p7425142482915">Configuration mode of compute resource parameters</p>
<ul id="mrs_01_24791__ul342572402914"><li id="mrs_01_24791__li642518241296">If you select <strong id="mrs_01_24791__b24907522685713">Basic</strong>, you only need to configure <strong id="mrs_01_24791__b41019488085713">Default Resource Pool Capacity (%)</strong>.</li><li id="mrs_01_24791__li94251824162914">If you select <strong id="mrs_01_24791__b78223336285713">Advanced</strong>, you can manually configure the resource allocation weight and the minimum, maximum, and reserved resources of the tenant.</li></ul>
</td>
</tr>
<tr id="mrs_01_24791__row0425132412920"><td class="cellrowborder" valign="top" width="32.32%" headers="mcps1.3.3.2.2.2.1.2.3.1.1 "><p id="mrs_01_24791__p104251824182912">Default Resource Pool Capacity (%)</p>
</td>
<td class="cellrowborder" valign="top" width="67.67999999999999%" headers="mcps1.3.3.2.2.2.1.2.3.1.2 "><p id="mrs_01_24791__p17425172417292">Percentage of compute resources used by the current tenant in the default resource pool. The value ranges from 0 to 100%.</p>
</td>
</tr>
<tr id="mrs_01_24791__row2042592472911"><td class="cellrowborder" valign="top" width="32.32%" headers="mcps1.3.3.2.2.2.1.2.3.1.1 "><p id="mrs_01_24791__p742542419299">Weight</p>
</td>
<td class="cellrowborder" valign="top" width="67.67999999999999%" headers="mcps1.3.3.2.2.2.1.2.3.1.2 "><p id="mrs_01_24791__p94251024112912">Resource allocation weight. The value ranges from 0 to 100.</p>
</td>
</tr>
<tr id="mrs_01_24791__row1942562482910"><td class="cellrowborder" valign="top" width="32.32%" headers="mcps1.3.3.2.2.2.1.2.3.1.1 "><p id="mrs_01_24791__p1442572419299">Minimum Resource</p>
</td>
<td class="cellrowborder" valign="top" width="67.67999999999999%" headers="mcps1.3.3.2.2.2.1.2.3.1.2 "><p id="mrs_01_24791__p2042513241299">Resources guaranteed for the tenant (preemption supported). The value can be a percentage or an absolute value of the parent tenant's resources. When a tenant has a light workload, the resources of the tenant are automatically allocated to other tenants. When the available tenant resources are less than the value of <strong id="mrs_01_24791__b1980316272072">Minimum Resource</strong>, the tenant can preempt the resources that have been lent to other tenants.</p>
</td>
</tr>
<tr id="mrs_01_24791__row11425202452919"><td class="cellrowborder" valign="top" width="32.32%" headers="mcps1.3.3.2.2.2.1.2.3.1.1 "><p id="mrs_01_24791__p742519243291">Maximum Resource</p>
</td>
<td class="cellrowborder" valign="top" width="67.67999999999999%" headers="mcps1.3.3.2.2.2.1.2.3.1.2 "><p id="mrs_01_24791__p8425424192920">Maximum resources that can be used by the tenant. The tenant cannot obtain more resources than the value configured. The value can be a percentage or an absolute value of the parent tenant's resources.</p>
</td>
</tr>
<tr id="mrs_01_24791__row942510243298"><td class="cellrowborder" valign="top" width="32.32%" headers="mcps1.3.3.2.2.2.1.2.3.1.1 "><p id="mrs_01_24791__p8426202419291">Reserved Resource</p>
</td>
<td class="cellrowborder" valign="top" width="67.67999999999999%" headers="mcps1.3.3.2.2.2.1.2.3.1.2 "><p id="mrs_01_24791__p1942612452920">Resources reserved for the tenant resource. The reserved resources cannot be used by other tenants even if no job is running in the current tenant resources. The value can be a percentage or an absolute value of the parent tenant's resources.</p>
</td>
</tr>
<tr id="mrs_01_24791__row042612462913"><td class="cellrowborder" valign="top" width="32.32%" headers="mcps1.3.3.2.2.2.1.2.3.1.1 "><p id="mrs_01_24791__p13426122415296">Storage Resource</p>
</td>
<td class="cellrowborder" valign="top" width="67.67999999999999%" headers="mcps1.3.3.2.2.2.1.2.3.1.2 "><p id="mrs_01_24791__p12426182415299">Storage resources for the current tenant.</p>
<ul id="mrs_01_24791__ul16426624172914"><li id="mrs_01_24791__li142632419298">When <strong id="mrs_01_24791__b18717517915">HDFS</strong> is selected, the system automatically allocates storage resources.</li><li id="mrs_01_24791__li4426202412919">If <strong id="mrs_01_24791__b104591371912">HDFS</strong> is not selected, the system does not automatically allocate storage resources.</li></ul>
</td>
</tr>
<tr id="mrs_01_24791__row13426192418298"><td class="cellrowborder" valign="top" width="32.32%" headers="mcps1.3.3.2.2.2.1.2.3.1.1 "><p id="mrs_01_24791__p17426162417290">Quota</p>
</td>
<td class="cellrowborder" valign="top" width="67.67999999999999%" headers="mcps1.3.3.2.2.2.1.2.3.1.2 "><p id="mrs_01_24791__p134261724142917">Quota for files and directories</p>
</td>
</tr>
<tr id="mrs_01_24791__row134261024132918"><td class="cellrowborder" valign="top" width="32.32%" headers="mcps1.3.3.2.2.2.1.2.3.1.1 "><p id="mrs_01_24791__p542672420293">Space Quota</p>
</td>
<td class="cellrowborder" valign="top" width="67.67999999999999%" headers="mcps1.3.3.2.2.2.1.2.3.1.2 "><p id="mrs_01_24791__p124265247291">Quota for the HDFS storage space used by the current tenant</p>
<ul id="mrs_01_24791__ul3426142472914"><li id="mrs_01_24791__li2042614249296">If the unit is set to <strong id="mrs_01_24791__b43964646785713">MB</strong>, the value ranges from 1 to 8796093022208. If the unit is set to <strong id="mrs_01_24791__b131464860085713">GB</strong>, the value ranges from 1 to 8589934592.</li><li id="mrs_01_24791__li1842662442911">This parameter indicates the maximum HDFS storage space that can be used by the tenant, but not the actual space used.</li><li id="mrs_01_24791__li142732416299">If its value is greater than the size of the HDFS physical disk, the maximum space available is the full space of the HDFS physical disk.</li></ul>
</td>
</tr>
<tr id="mrs_01_24791__row7427924192913"><td class="cellrowborder" valign="top" width="32.32%" headers="mcps1.3.3.2.2.2.1.2.3.1.1 "><p id="mrs_01_24791__p1427102414293">Storage Path</p>
</td>
<td class="cellrowborder" valign="top" width="67.67999999999999%" headers="mcps1.3.3.2.2.2.1.2.3.1.2 "><p id="mrs_01_24791__p13427142462913">HDFS storage directory for the tenant</p>
<ul id="mrs_01_24791__ul11427152492917"><li id="mrs_01_24791__li94271424102915">The system automatically creates a folder named after the tenant name in the <strong id="mrs_01_24791__b157975304169">/tenant</strong> directory by default. For example, the default HDFS storage directory for tenant <strong id="mrs_01_24791__b82454064185713">ta1</strong> is <strong id="mrs_01_24791__b168419817685713">/tenant/ta1</strong>.</li><li id="mrs_01_24791__li4427122482918">When a tenant is created for the first time, the system automatically creates the <strong id="mrs_01_24791__b146814528174">/tenant</strong> directory in the HDFS root directory. The storage path is customizable.</li></ul>
</td>
</tr>
<tr id="mrs_01_24791__row1542722412916"><td class="cellrowborder" valign="top" width="32.32%" headers="mcps1.3.3.2.2.2.1.2.3.1.1 "><p id="mrs_01_24791__p5427122442916">Service</p>
</td>
<td class="cellrowborder" valign="top" width="67.67999999999999%" headers="mcps1.3.3.2.2.2.1.2.3.1.2 "><ul id="mrs_01_24791__ul132023415292"><li id="mrs_01_24791__li5208346299">Select <strong id="mrs_01_24791__b188876215182">ClickHouse</strong> for <strong id="mrs_01_24791__b138743211182">Service</strong>.<ul id="mrs_01_24791__ul02103410296"><li id="mrs_01_24791__li142117348294"><strong id="mrs_01_24791__b168325316181">Association Type</strong>: When <strong id="mrs_01_24791__b12102145318185">Service</strong> is set to <strong id="mrs_01_24791__b1310535318188">ClickHouse</strong>, <strong id="mrs_01_24791__b1910745316188">Association Type</strong> can only be set to <strong id="mrs_01_24791__b14109175318181">Shared</strong>.</li><li id="mrs_01_24791__li021143462919"><strong id="mrs_01_24791__b2908856121812">Associate Logical Cluster</strong>: If the logical cluster function is not enabled for ClickHouse, <strong id="mrs_01_24791__b1291215619186">default_cluster</strong> is selected by default. If the function is enabled, select the logical cluster to which you want to associate.</li><li id="mrs_01_24791__li321143419297"><strong id="mrs_01_24791__b62429021919">CPU Priority</strong>: The CPU priority ranges from 20 to 19. This value is associated with the NICE value of the OS. A smaller value indicates a higher CPU priority. For details about how to enable the CPU priority, see <a href="mrs_01_24789.html">Enabling the CPU Priority Feature</a>.</li><li id="mrs_01_24791__li1121634142911"><strong id="mrs_01_24791__b146811414101910">Memory</strong>: The maximum value of this parameter is <strong id="mrs_01_24791__b568412147195">100</strong>, in percentage. For example, if this parameter is set to <strong id="mrs_01_24791__b768613148193">80</strong>, the total memory that can be used by the current tenant is calculated as follows: Available memory x 80%.</li></ul>
</li></ul>
</td>
</tr>
<tr id="mrs_01_24791__row19427224142919"><td class="cellrowborder" valign="top" width="32.32%" headers="mcps1.3.3.2.2.2.1.2.3.1.1 "><p id="mrs_01_24791__p194271424142913">Description</p>
</td>
<td class="cellrowborder" valign="top" width="67.67999999999999%" headers="mcps1.3.3.2.2.2.1.2.3.1.2 "><p id="mrs_01_24791__p1942717248299">Description of the current tenant</p>
</td>
</tr>
</tbody>
</table>
</div>
</p></li><li id="mrs_01_24791__li15429624122912"><span>Click <strong id="mrs_01_24791__b775017405198">OK</strong>. Wait until the tenant is created.</span></li><li id="mrs_01_24791__li2585174315"><span>After the ClickHouse tenant is created, you can view and modify tenant resources on the <strong id="mrs_01_24791__b997113317229">Tenant Resources</strong> page.</span><p><ol type="a" id="mrs_01_24791__ol12384112114311"><li id="mrs_01_24791__li63841521734">On FusionInsight Manager, choose <strong id="mrs_01_24791__b797593917226">Tenant Resources</strong>. In the tenant list, select the ClickHouse tenant whose information you want to view and view the tenant overview and resource quota.</li><li id="mrs_01_24791__li438472117310">Choose <strong id="mrs_01_24791__b188512843713">Resources</strong> and click <span><img id="mrs_01_24791__image13848211930" src="en-us_image_0000001583195981.png"></span> next to <strong id="mrs_01_24791__b102038411378">Resource Details</strong> to modify tenant resources.</li><li id="mrs_01_24791__li163848217313">After the modification is complete, click <strong id="mrs_01_24791__b29019385375">OK</strong>. The modified resource details are displayed on the <strong id="mrs_01_24791__b198446683817">Resources</strong> page.<div class="note" id="mrs_01_24791__note1859917538323"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_24791__p960005313326">After modifying the resource quota of the ClickHouse tenant, you need to log in to the ClickHouse client again for the modification to take effect.</p>
</div></div>
</li></ol>
</p></li></ol>
</div>
<div class="section" id="mrs_01_24791__section17882621191614"><h4 class="sectiontitle">Adding a User and Binding the User to a Tenant</h4><ul id="mrs_01_24791__ul64771940124819"><li id="mrs_01_24791__li154771240104820">To create a user and bind the user to a tenant, log in to FusionInsight Manager, choose <strong id="mrs_01_24791__b1212385217234">System</strong> &gt; <strong id="mrs_01_24791__b15885155502316">Permission</strong> &gt; <strong id="mrs_01_24791__b633265914236">User</strong>, click <strong id="mrs_01_24791__b1559902718247">Create User</strong> to add a human-machine user, and add the tenant created by referring to <a href="#mrs_01_24791__section552518236108">Creating a ClickHouse Tenant</a>. Then, the user has the permissions on the ClickHouse logical cluster.</li></ul>
<ul id="mrs_01_24791__ul142496464484"><li id="mrs_01_24791__li182491646134813">To bind an existing user to a tenant, log in to FusionInsight Manager, choose <strong id="mrs_01_24791__b910925115283">System</strong> &gt; <strong id="mrs_01_24791__b16470125552818">Permission</strong> &gt; <strong id="mrs_01_24791__b66791757202819">User</strong>, click <strong id="mrs_01_24791__b22813102916">Modify</strong> in the <strong id="mrs_01_24791__b111536916297">Operation</strong> column of the user, and add the tenant created by referring to <a href="#mrs_01_24791__section552518236108">Creating a ClickHouse Tenant</a>. Delete the ClickHouse tenant from the role if the tenant is no longer needed.<div class="note" id="mrs_01_24791__note13514928112610"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="mrs_01_24791__ul857782982614"><li id="mrs_01_24791__li127721764521">After a user is bound to a ClickHouse tenant, the user has the permission to modify the logical cluster of the tenant.</li><li id="mrs_01_24791__li1957762912264">When multiple users are bound to the same tenant, the tenant-level memory limit of the current version does not support real-time total memory limit. For example, user1 and user2 are bound to tenant1, the memory limit for tenant1 is 10 GB, and the query performed by user1 uses 5 GB memory. When user2 initiates a query, the memory that can be used by user2 is limited to 5 GB. During the query, the service does not dynamically update this restriction.</li><li id="mrs_01_24791__li3577172972618">In the current version, a user cannot be bound to multiple ClickHouse tenants. If user1 has been associated with tenant1, no error message is displayed when user1 is associated with tenant2, but the information is recorded in background logs, indicating that the user has been associated with a tenant and this association operation is invalid.</li></ul>
</div></div>
</li></ul>
</div>
<div class="section" id="mrs_01_24791__section189594564152"><h4 class="sectiontitle">Associating an Existing Tenant with the ClickHouse Service</h4><ol id="mrs_01_24791__ol8694114102113"><li id="mrs_01_24791__li1569454102112">On FusionInsight Manager, choose <strong id="mrs_01_24791__b831395811381">Tenant Resources</strong>, select the tenant to which you want to associate a service, click the <strong id="mrs_01_24791__b191798167425">Service Association</strong> tab, and click <strong id="mrs_01_24791__b15758322114210">Associate Service</strong>. The following table describes the parameters.
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24791__table14880172091917" frame="border" border="1" rules="all"><thead align="left"><tr id="mrs_01_24791__row10881920181911"><th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.5.2.1.4.1.3.1.1"><p id="mrs_01_24791__p7881102041911">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.2.1.4.1.3.1.2"><p id="mrs_01_24791__p1188112016192">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_24791__row1988122011191"><td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.5.2.1.4.1.3.1.1 "><p id="mrs_01_24791__p388119200197">Service</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.2.1.4.1.3.1.2 "><p id="mrs_01_24791__p17881162015198">Select <strong id="mrs_01_24791__b88901432514">ClickHouse</strong>.</p>
</td>
</tr>
<tr id="mrs_01_24791__row18816204196"><td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.5.2.1.4.1.3.1.1 "><p id="mrs_01_24791__p118811220181916">Association Type</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.2.1.4.1.3.1.2 "><p id="mrs_01_24791__p1388111202193">Select <strong id="mrs_01_24791__b1328110154413">Shared</strong>.</p>
</td>
</tr>
<tr id="mrs_01_24791__row14881122010196"><td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.5.2.1.4.1.3.1.1 "><p id="mrs_01_24791__p6881720101912">Associate Logical Cluster</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.2.1.4.1.3.1.2 "><p id="mrs_01_24791__p188811320201911">If the logical cluster function is not enabled for ClickHouse, <strong id="mrs_01_24791__b18268143715443">default_cluster</strong> is selected by default. If the function is enabled, select the logical cluster to which you want to associate.</p>
</td>
</tr>
<tr id="mrs_01_24791__row18822918112114"><td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.5.2.1.4.1.3.1.1 "><p id="mrs_01_24791__p482231822118">CPU Priority</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.2.1.4.1.3.1.2 "><p id="mrs_01_24791__p10822618172110">The CPU priority ranges from 20 to 19. This value is associated with the NICE value of the OS. A smaller value indicates a higher CPU priority. For details about how to enable the CPU priority, see <a href="mrs_01_24789.html">Enabling the CPU Priority Feature</a>.</p>
</td>
</tr>
<tr id="mrs_01_24791__row14881162021919"><td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.5.2.1.4.1.3.1.1 "><p id="mrs_01_24791__p388132051910">Memory</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.2.1.4.1.3.1.2 "><p id="mrs_01_24791__p488162021916">The maximum value of this parameter is <strong id="mrs_01_24791__b1851682504513">100</strong>, in percentage. For example, if this parameter is set to <strong id="mrs_01_24791__b18518162517451">80</strong>, the total memory that can be used by the current tenant is calculated as follows: Available memory x 80%.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="mrs_01_24791__li146942419214">On the displayed tab page, configure the tenant based on service requirements and click <strong id="mrs_01_24791__b950445319457">OK</strong>. The tenant is associated with the service.</li><li id="mrs_01_24791__li151761843141420">To disassociate the ClikHouse service, perform the following operations:<div class="p" id="mrs_01_24791__p171654331417"><a name="mrs_01_24791__li151761843141420"></a><a name="li151761843141420"></a>On FusionInsight Manager, choose <strong id="mrs_01_24791__b1127424322619">Tenant Resources</strong>, select the tenant whose ClickHouse service is to be disassociated, and click <strong id="mrs_01_24791__b93592032122818">Delete</strong> in the <strong id="mrs_01_24791__b1570153611284">Operation</strong> column. In the dialog box that is displayed, click <strong id="mrs_01_24791__b7300204214289">OK</strong>.<div class="note" id="mrs_01_24791__note12779105671311"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_24791__p1977995671317">After the ClickHouse service is disassociated from a tenant, the tenant and its users no longer have the permissions on the ClickHouse logical cluster.</p>
</div></div>
</div>
</li></ol>
</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>