Yang, Tong 6182f91ba8 MRS component operation guide_normal 2.0.38.SP20 version
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>
2022-12-09 14:55:21 +00:00

122 lines
12 KiB
HTML

<a name="mrs_01_1943"></a><a name="mrs_01_1943"></a>
<h1 class="topictitle1">Configuring the Multi-tenant Mode</h1>
<div id="body1595920206244"><div class="section" id="mrs_01_1943__s8fb504bd02484f97a0a8526107e0f759"><h4 class="sectiontitle">Scenarios</h4><p id="mrs_01_1943__abcddcea270aa41f784f54ace11d57d8a">In multi-tenant mode, JDBCServers are bound with tenants. Each tenant corresponds to one or more JDBCServers, and a JDBCServer provides services for only one tenant. Different tenants can be configured with different Yarn queues to implement resource isolation.</p>
</div>
<div class="section" id="mrs_01_1943__s5b984ff01fd34ab590725329313962f9"><h4 class="sectiontitle">Configuration Description</h4><p id="mrs_01_1943__a01af061964f3448fb30b07fc4a0aaab5">Log in to Manager, choose <span id="mrs_01_1943__text89287364813"><strong id="mrs_01_1943__b792114316485">Cluster</strong> &gt; <em id="mrs_01_1943__i10927233488">Name of the desired cluster</em></span> &gt; <strong id="mrs_01_1943__b18928113124813">Services</strong> &gt; <strong id="mrs_01_1943__b19929113194820">Spark2x</strong> &gt; <strong id="mrs_01_1943__b209291634484">Configurations</strong>, click <strong id="mrs_01_1943__b1093063174818">All Configurations</strong>, and search for and modify the following parameters.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1943__ta23b51b7a2024f7aa827fc5610d7a7f9" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="mrs_01_1943__r09fe66ae687a4519a7c888c176ac0908"><th align="left" class="cellrowborder" valign="top" width="28.63%" id="mcps1.3.2.3.2.4.1.1"><p id="mrs_01_1943__a136181b87b5046ea9d1ddbc04e94115d"><strong id="mrs_01_1943__a89b589386b4e4fc5a3364b425850e119">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="51.76%" id="mcps1.3.2.3.2.4.1.2"><p id="mrs_01_1943__a56186c6c4d494d22bf43c9a9b94195ee"><strong id="mrs_01_1943__a76d2e6fbeaa340fe8e1ff647153be2e5">Description</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.61%" id="mcps1.3.2.3.2.4.1.3"><p id="mrs_01_1943__ab8899ec4388c42a2b4c62dbfce5aa7f9"><strong id="mrs_01_1943__a7aca9ac0131a405b9b689d98f72d3c69">Default Value</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_1943__r8d92087d09ac434ca3e2a2765f002425"><td class="cellrowborder" valign="top" width="28.63%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_1943__af07072708124437585a066f41639977a">spark.proxyserver.hash.enabled</p>
</td>
<td class="cellrowborder" valign="top" width="51.76%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_1943__ac96f14897b954e59a985cd4f59eda167">Specifies whether to connect to ProxyServer using the Hash algorithm.</p>
<ul id="mrs_01_1943__ucb5c90db233f4734868663e8dba2ea3c"><li id="mrs_01_1943__le801751d60f14219976794483e7d2266"><strong id="mrs_01_1943__b11664049711192">true</strong> indicates using the Hash algorithm. In multi-tenant mode, this parameter must be configured to <strong id="mrs_01_1943__b116428786811192">true</strong>.</li><li id="mrs_01_1943__leef29a7030514be48f784b87d56377af"><strong id="mrs_01_1943__b171749450611192">false</strong> indicates using random connection. In multi-active instance mode, this parameter must be configured to <strong id="mrs_01_1943__b185615892511192">false</strong>.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_1943__abc0563e03e8d4977876483b5223ecf86">true</p>
<div class="note" id="mrs_01_1943__n2c7fc366441b46539af13dc25f1f47f7"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="mrs_01_1943__a0b65c41cb92042549eac0ef09055239e">After this parameter is modified, you need to download the client again.</p>
</div></div>
</td>
</tr>
<tr id="mrs_01_1943__rfc0e9f27a9d743ce88f436d3d755816c"><td class="cellrowborder" valign="top" width="28.63%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_1943__ae8969889f7cd4c31a6a2db00fd65d74d">spark.thriftserver.proxy.enabled</p>
</td>
<td class="cellrowborder" valign="top" width="51.76%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_1943__a3a3293d9eb7b49f79789d161eed8f513">Specifies whether to use the multi-tenant mode.</p>
<ul id="mrs_01_1943__u311ed2f510da4a0e9c5aa359181d98a7"><li id="mrs_01_1943__l77258fd3e0dd4def8610afd32ab14917"><strong id="mrs_01_1943__b47497228111192">false</strong>: The multi-instance mode is used.</li><li id="mrs_01_1943__l5a534f3acc8548d888aa595747265910"><strong id="mrs_01_1943__b143090156611192">true</strong>: The multi-tenant mode is used.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_1943__aaf1e717b10844c2fb1f3f82a535bd659">true</p>
</td>
</tr>
<tr id="mrs_01_1943__rc7d190b9f74f4225b48101a72e6e78df"><td class="cellrowborder" valign="top" width="28.63%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_1943__a819d0a168782411ca45304f44ba6b167">spark.thriftserver.proxy.maxThriftServerPerTenancy</p>
</td>
<td class="cellrowborder" valign="top" width="51.76%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_1943__a9bb53c22b61a4dfa85eeea46a02665b2">Specifies the maximum number of JDBCServer instances that can be started by a tenant in multi-tenant mode. </p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_1943__a739ec770e4e645ec99cd9a927e310229">1</p>
</td>
</tr>
<tr id="mrs_01_1943__ra0e371c695044448a560e3c4fb809d0b"><td class="cellrowborder" valign="top" width="28.63%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_1943__a13060754a588493c9899c0dc1d14b973">spark.thriftserver.proxy.maxSessionPerThriftServer</p>
</td>
<td class="cellrowborder" valign="top" width="51.76%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_1943__a1278d799c3664c1d9cdc292787befccc">Specifies the maximum number of sessions in a single JDBCServer instance in multi-tenant mode. If the number of sessions exceeds this value and the number of JDBCServer instances does not exceed the upper limit, a new JDBCServer instance is started. Otherwise, an alarm log is output.</p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_1943__a205abfea4eaf4cc28b973d4d8947f4cc">50</p>
</td>
</tr>
<tr id="mrs_01_1943__rd8cfe5108d654f15ac457943514de46d"><td class="cellrowborder" valign="top" width="28.63%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_1943__a5f8d4a5030de48c9bac3eda87bd43dfe">spark.thriftserver.proxy.sessionWaitTime</p>
</td>
<td class="cellrowborder" valign="top" width="51.76%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_1943__a90731e981f9e4e67ab7d6a6c4a07dbd9">Specifies the wait time before a JDBCServer instance is stopped when it has no session connections in multi-tenant mode.</p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_1943__a182cd7e37d454926abcd8ad2bc8027bb">180000</p>
</td>
</tr>
<tr id="mrs_01_1943__r45ea322d0c694daba9047d69ed4da7bb"><td class="cellrowborder" valign="top" width="28.63%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_1943__a95e8051b4b914d418b0c5c635d37d380">spark.thriftserver.proxy.sessionThreshold</p>
</td>
<td class="cellrowborder" valign="top" width="51.76%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_1943__a5f54a2e8502745b79eff89ea0997ca6c">In multi-tenant mode, when the session usage (formula: number of current sessions/spark.thriftserver.proxy.maxSessionPerThriftServer x number of current JDBCServer instances) of the JDBCServer instance reaches the threshold, a new JDBCServer instance is automatically added.</p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_1943__a678cbe4db72e47bda7198cbedb472fb8">100</p>
</td>
</tr>
<tr id="mrs_01_1943__r40c70171ca4b4fd298c479abd2047641"><td class="cellrowborder" valign="top" width="28.63%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_1943__a9bfca980c3eb4deab48693a5ac185cf6">spark.thriftserver.proxy.healthcheck.period</p>
</td>
<td class="cellrowborder" valign="top" width="51.76%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_1943__a0d4f320dcbf8449693f45626e4c2cc0f">Specifies the period of JDBCServer health checks conducted by the JDBCServer proxy in multi-tenant mode.</p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_1943__a42ae47940a7d4092939c5bb26c4ff747">60000</p>
</td>
</tr>
<tr id="mrs_01_1943__ra2102cac64f147f0ba08ef64138283ea"><td class="cellrowborder" valign="top" width="28.63%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_1943__af9edaf7552ea498a8c1fbb9255fcd889">spark.thriftserver.proxy.healthcheck.recheckTimes</p>
</td>
<td class="cellrowborder" valign="top" width="51.76%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_1943__aa4892ad80c414851a927247dfc1989df">Specifies the number of JDBCServer health check retries conducted by the JDBCServer proxy in multi-tenant mode.</p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_1943__a3734267fa84041eba4d2b93e7f4d032f">3</p>
</td>
</tr>
<tr id="mrs_01_1943__r44bf2d9ab8af4fa9a670b6f56b1e12ad"><td class="cellrowborder" valign="top" width="28.63%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_1943__a621edfbd7a724c3c842b7dc3a70d55ed">spark.thriftserver.proxy.healthcheck.waitTime</p>
</td>
<td class="cellrowborder" valign="top" width="51.76%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_1943__aa2bf497fc034462dbaa61bcad44624d8">Specifies the wait time for JDBCServer to respond to a health check request sent by the JDBCServer proxy.</p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_1943__a47913e53e3674ec5ad469c88b1791ab2">10000</p>
</td>
</tr>
<tr id="mrs_01_1943__r1de6479160eb46bdb2cdc80faa92ab16"><td class="cellrowborder" valign="top" width="28.63%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_1943__a433bd05339614d799a63e7a3d48ae65e">spark.thriftserver.proxy.session.check.interval</p>
</td>
<td class="cellrowborder" valign="top" width="51.76%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_1943__a43b7f8b853354b54b97d3c82ea201d07">Specifies the period of JDBCServer proxy sessions in multi-tenant mode.</p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_1943__a3ed163c57d394940ba30ebdcc82620c6">6h</p>
</td>
</tr>
<tr id="mrs_01_1943__re97c56e94f8d4d0e925ca96051a19e6f"><td class="cellrowborder" valign="top" width="28.63%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_1943__a11a634621b854e96b5adcddcbe406505">spark.thriftserver.proxy.idle.session.timeout</p>
</td>
<td class="cellrowborder" valign="top" width="51.76%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_1943__a95ab28ff7a804bf6824dd1ab826c6162">Specifies the idle time interval of a JDBCServer proxy session in multi-tenant mode. If no operation is performed within this period, the session is closed.</p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_1943__a7048a770cfb24113a3580f49d9c45c56">7d</p>
</td>
</tr>
<tr id="mrs_01_1943__r9f7d9c82cc68487b881782986dc33bd9"><td class="cellrowborder" valign="top" width="28.63%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_1943__a1de3bfd3727b4f2595d18124441324c2">spark.thriftserver.proxy.idle.session.check.operation</p>
</td>
<td class="cellrowborder" valign="top" width="51.76%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_1943__a668765f53e9540dcadfa058197c4a7f5">Specifies whether to check that operations still exist on a JDBCServer proxy session when the session is checked for expiration in multi-tenant mode. </p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_1943__a3ff8b49b44064774955e515bc1a6765c">true</p>
</td>
</tr>
<tr id="mrs_01_1943__rdca72b9a3e5d4f73a9d456936dfa1d32"><td class="cellrowborder" valign="top" width="28.63%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_1943__a460db5b6fba04b12a8d5618479bae6ca">spark.thriftserver.proxy.idle.operation.timeout</p>
</td>
<td class="cellrowborder" valign="top" width="51.76%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_1943__af17dd88dd6d2441fa235988645295459">Specifies the timeout interval of an operation in multi-tenant mode. An operation that times out is closed.</p>
</td>
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_1943__ae69a153092fb42babcce59466272004a">5d</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1941.html">Scenario-Specific Configuration</a></div>
</div>
</div>