Yang, Tong 3f5759eed2 MRS comp-lts 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>
2023-01-19 17:08:45 +00:00

64 lines
7.9 KiB
HTML

<a name="mrs_01_1742"></a><a name="mrs_01_1742"></a>
<h1 class="topictitle1">Adjusting Execution Plan Cache</h1>
<div id="body32001227"><div class="section" id="mrs_01_1742__en-us_topic_0000001219350551_section9458104215231"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_1742__en-us_topic_0000001219350551_p14727635152011"><span id="mrs_01_1742__en-us_topic_0000001219350551_text155083494718">HetuEngine</span> provides the execution plan cache function. For the same query that needs to be executed for multiple times, this function reduces the time required for generating the execution plans for the same query.</p>
</div>
<div class="section" id="mrs_01_1742__en-us_topic_0000001219350551_section468693812213"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_1742__en-us_topic_0000001219350551_ol1147105082110"><li id="mrs_01_1742__en-us_topic_0000001219350551_li1014765013217"><span>Log in to FusionInsight Manager.</span></li><li id="mrs_01_1742__en-us_topic_0000001219350551_li9328192122217"><span>Choose <strong id="mrs_01_1742__en-us_topic_0000001219350551_b1510235913287">Cluster</strong> &gt; <strong id="mrs_01_1742__en-us_topic_0000001219350551_b19978180152915">Services</strong> &gt; <strong id="mrs_01_1742__en-us_topic_0000001219350551_b950218425483"><span id="mrs_01_1742__en-us_topic_0000001219350551_text7730173513473">HetuEngine</span></strong> &gt; <strong id="mrs_01_1742__en-us_topic_0000001219350551_b15520165182917">Configurations</strong> &gt; <strong id="mrs_01_1742__en-us_topic_0000001219350551_b3951810132917">All Configurations</strong> and adjust the execution plan cache parameters by referring to <a href="#mrs_01_1742__en-us_topic_0000001219350551_table0600139102317">Table 1</a>.</span><p>
<div class="tablenoborder"><a name="mrs_01_1742__en-us_topic_0000001219350551_table0600139102317"></a><a name="en-us_topic_0000001219350551_table0600139102317"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1742__en-us_topic_0000001219350551_table0600139102317" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Execution plan cache parameters</caption><thead align="left"><tr id="mrs_01_1742__en-us_topic_0000001219350551_row76001292236"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.2.2.1.2.6.1.1"><p id="mrs_01_1742__en-us_topic_0000001219350551_p560012914231">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.2.2.1.2.6.1.2"><p id="mrs_01_1742__en-us_topic_0000001219350551_p176007912236">Default Value</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.2.2.1.2.6.1.3"><p id="mrs_01_1742__en-us_topic_0000001219350551_p2600696233">Recommended Value</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.2.2.1.2.6.1.4"><p id="mrs_01_1742__en-us_topic_0000001219350551_p56005972311">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.2.2.1.2.6.1.5"><p id="mrs_01_1742__en-us_topic_0000001219350551_p116003913230">Parameter File</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_1742__en-us_topic_0000001219350551_row0600199182312"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.2.1.2.6.1.1 "><p id="mrs_01_1742__en-us_topic_0000001219350551_p76001299238">hetu.executionplan.cache.enabled</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.2.1.2.6.1.2 "><p id="mrs_01_1742__en-us_topic_0000001219350551_p16001294239">false</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.2.1.2.6.1.3 "><p id="mrs_01_1742__en-us_topic_0000001219350551_p12600139172311">true</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.2.1.2.6.1.4 "><p id="mrs_01_1742__en-us_topic_0000001219350551_p1360014912319">Indicates whether to enable the global execution plan cache.</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.2.1.2.6.1.5 "><p id="mrs_01_1742__en-us_topic_0000001219350551_p360069142318"><strong id="mrs_01_1742__en-us_topic_0000001219350551_b2342203231312">coordinator.config.properties</strong> and <strong id="mrs_01_1742__en-us_topic_0000001219350551_b179520344131">worker.config.properties</strong></p>
</td>
</tr>
<tr id="mrs_01_1742__en-us_topic_0000001219350551_row2060014915238"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.2.1.2.6.1.1 "><p id="mrs_01_1742__en-us_topic_0000001219350551_p76001093237">hetu.executionplan.cache.limit</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.2.1.2.6.1.2 "><p id="mrs_01_1742__en-us_topic_0000001219350551_p176005919230">20000</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.2.1.2.6.1.3 "><p id="mrs_01_1742__en-us_topic_0000001219350551_p11600129162316">Adjust the value based on application requirements.</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.2.1.2.6.1.4 "><p id="mrs_01_1742__en-us_topic_0000001219350551_p126008932314">Indicates the maximum number of execution plans that can be cached.</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.2.1.2.6.1.5 "><p id="mrs_01_1742__en-us_topic_0000001219350551_p166007952313"><strong id="mrs_01_1742__en-us_topic_0000001219350551_b5582133713138">coordinator.config.properties</strong> and <strong id="mrs_01_1742__en-us_topic_0000001219350551_b7582113715139">worker.config.properties</strong></p>
</td>
</tr>
<tr id="mrs_01_1742__en-us_topic_0000001219350551_row26002913238"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.2.1.2.6.1.1 "><p id="mrs_01_1742__en-us_topic_0000001219350551_p46007962313">hetu.executionplan.cache.timeout</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.2.1.2.6.1.2 "><p id="mrs_01_1742__en-us_topic_0000001219350551_p86001693237">86400000</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.2.1.2.6.1.3 "><p id="mrs_01_1742__en-us_topic_0000001219350551_p36002919235">Adjust the value based on application requirements.</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.2.1.2.6.1.4 "><p id="mrs_01_1742__en-us_topic_0000001219350551_p1160018902320">Indicates the timeout interval of the cached execution plan since the last access, in milliseconds.</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.2.1.2.6.1.5 "><p id="mrs_01_1742__en-us_topic_0000001219350551_p86004942318"><strong id="mrs_01_1742__en-us_topic_0000001219350551_b1642254213136">coordinator.config.properties</strong> and <strong id="mrs_01_1742__en-us_topic_0000001219350551_b442214221318">worker.config.properties</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</p></li><li id="mrs_01_1742__en-us_topic_0000001219350551_li864683515222"><span>Click <span class="uicontrol" id="mrs_01_1742__en-us_topic_0000001219350551_en-us_topic_0254454631_uicontrol15312340979"><b>Save</b></span>.</span></li><li id="mrs_01_1742__en-us_topic_0000001219350551_li4319445162218"><span>Choose <strong id="mrs_01_1742__en-us_topic_0000001219350551_b33324425490">Cluster</strong> &gt; <strong id="mrs_01_1742__en-us_topic_0000001219350551_b63321142154919">Services</strong> &gt; <strong id="mrs_01_1742__en-us_topic_0000001219350551_b18333114274919"><span id="mrs_01_1742__en-us_topic_0000001219350551_text1033319424495">HetuEngine</span></strong> &gt; <strong id="mrs_01_1742__en-us_topic_0000001219350551_b13331428495">More</strong> &gt; <strong id="mrs_01_1742__en-us_topic_0000001219350551_b1733418421492">Restart Service</strong> to restart the <span id="mrs_01_1742__en-us_topic_0000001219350551_text1433418422491">HetuEngine</span> service for the parameters to take effect.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1745.html">HetuEngine Performance Tuning</a></div>
</div>
</div>