doc-exports/docs/css/umn/css_01_0231.html
Wuwan, Qi 050b395397 CSS UMN 23.2.1 20230926
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
2024-01-10 14:23:15 +00:00

22 lines
2.9 KiB
HTML

<a name="css_01_0231"></a><a name="css_01_0231"></a>
<h1 class="topictitle1">Bulk Aggregation Optimization</h1>
<div id="body8662426"><p id="css_01_0231__en-us_topic_0000001549503741_p725354043716">You can specify the <span class="parmname" id="css_01_0231__en-us_topic_0000001549503741_parmname1756132393920"><b>index.aggr_perf_batch_size</b></span> configuration item to enable or disable batch import optimization. After the batch import function is enabled, documents in bulk requests are written in batches. This function reduces the overhead of memory application, application lock, and other calls, improving data import performance.</p>
<div class="note" id="css_01_0231__en-us_topic_0000001549503741_note19213848614"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="css_01_0231__en-us_topic_0000001549503741_p221312489119">The value range of <span class="parmname" id="css_01_0231__en-us_topic_0000001549503741_parmname183671355414"><b>index.aggr_perf_batch_size</b></span> is [1, Integer.MAX_VALUE]. The default value is <strong id="css_01_0231__en-us_topic_0000001549503741_b126031061495">1</strong>, indicating that the batch import function is disabled. If the value is greater than 1, the batch import function is enabled and the value of <strong id="css_01_0231__en-us_topic_0000001549503741_b5752105795117">MIN(bulk_doc_size, aggr_perf_batch_size)</strong> indicates the batch size.</p>
</div></div>
<div class="section" id="css_01_0231__en-us_topic_0000001549503741_section381314245297"><h4 class="sectiontitle">Procedure</h4><ol id="css_01_0231__en-us_topic_0000001549503741_ol1549211439294"><li id="css_01_0231__en-us_topic_0000001549503741_li94259413385">Choose <strong id="css_01_0231__en-us_topic_0000001549503741_b57946524162249">Clusters</strong> in the navigation pane. On the <strong id="css_01_0231__en-us_topic_0000001549503741_b205209330762249">Clusters</strong> page, locate the target cluster, and click <strong id="css_01_0231__en-us_topic_0000001549503741_b48055424262249">Access Kibana</strong> in the <strong id="css_01_0231__en-us_topic_0000001549503741_b86460899962249">Operation</strong> column.</li><li id="css_01_0231__en-us_topic_0000001549503741_li11420444113818">In the navigation tree on the left, choose <strong id="css_01_0231__en-us_topic_0000001549503741_b184303952862255">Dev Tools</strong>.</li><li id="css_01_0231__en-us_topic_0000001549503741_li14923433297">On the <span class="uicontrol" id="css_01_0231__en-us_topic_0000001549503741_uicontrol83440889762257"><b>Dev Tools</b></span> page, run the following command:<pre class="screen" id="css_01_0231__en-us_topic_0000001549503741_screen1467804014239">PUT my_index
{
"settings": {
"index.aggr_perf_batch_size": "128"
}
}</pre>
</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_01_0229.html">Instructions</a></div>
</div>
</div>