doc-exports/docs/css/umn/css_01_0178.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

71 lines
5.6 KiB
HTML

<a name="css_01_0178"></a><a name="css_01_0178"></a>
<h1 class="topictitle1">P99 Latency Monitoring</h1>
<div id="body0000001335994820"><div class="section" id="css_01_0178__en-us_topic_0000001335994820_section8457102616414"><h4 class="sectiontitle">Context</h4><p id="css_01_0178__en-us_topic_0000001335994820_p282812292411">The Elasticsearch community only discusses how to monitor the average latency of search requests, which cannot reflect the actual search performance of a cluster. To enhance monitoring, CSS allows you to monitor the P99 latency of search requests in clusters.</p>
</div>
<div class="section" id="css_01_0178__en-us_topic_0000001335994820_section8847142914210"><h4 class="sectiontitle">Prerequisites</h4><p id="css_01_0178__en-us_topic_0000001335994820_p2037354417421">Currently, only clusters of version 7.6.2 and 7.10.2 support P99 latency monitoring.</p>
</div>
<div class="section" id="css_01_0178__en-us_topic_0000001335994820_section1338415110439"><h4 class="sectiontitle">Obtaining Monitoring Information</h4><ol id="css_01_0178__en-us_topic_0000001335994820_ol81213116449"><li id="css_01_0178__en-us_topic_0000001335994820_li11214117446">Log in to the CSS management console.</li><li id="css_01_0178__en-us_topic_0000001335994820_li1274935516811">Choose <strong id="css_01_0178__en-us_topic_0000001335994820_b1689392511596">Clusters</strong> in the navigation pane. On the <strong id="css_01_0178__en-us_topic_0000001335994820_b2893112513599">Clusters</strong> page, locate the target cluster and click <strong id="css_01_0178__en-us_topic_0000001335994820_b148931225105915">Access Kibana</strong> in the <strong id="css_01_0178__en-us_topic_0000001335994820_b19894925115915">Operation</strong> column.</li><li id="css_01_0178__en-us_topic_0000001335994820_li11781202515462">In the navigation tree on the left, choose <strong id="css_01_0178__en-us_topic_0000001335994820_b105931636115913">Dev Tools</strong> and run the following command to check the P99 latency of the current cluster:<pre class="screen" id="css_01_0178__en-us_topic_0000001335994820_screen79142157521">GET /search/stats/percentile </pre>
<p id="css_01_0178__en-us_topic_0000001335994820_p1291461510526">Example response:</p>
<pre class="screen" id="css_01_0178__en-us_topic_0000001335994820_screen179141815135212">{
"overall" : {
"1.0" : 2.0,
"5.0" : 2.0,
"25.0" : 6.5,
"50.0" : 19.5,
"75.0" : 111.0,
"95.0" : 169.0,
"99.0" : 169.0,
"max" : 169.0,
"min" : 2.0
},
"last_one_day" : {
"1.0" : 2.0,
"5.0" : 2.0,
"25.0" : 6.5,
"50.0" : 19.5,
"75.0" : 111.0,
"95.0" : 169.0,
"99.0" : 169.0,
"max" : 169.0,
"min" : 2.0
},
"latest" : {
"1.0" : 26.0,
"5.0" : 26.0,
"25.0" : 26.0,
"50.0" : 26.0,
"75.0" : 26.0,
"95.0" : 26.0,
"99.0" : 26.0,
"max" : 26.0,
"min" : 26.0
}
}</pre>
<div class="note" id="css_01_0178__en-us_topic_0000001335994820_note1324917115539"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="css_01_0178__en-us_topic_0000001335994820_ul1711710675312"><li id="css_01_0178__en-us_topic_0000001335994820_li191171365533">In the response, <strong id="css_01_0178__en-us_topic_0000001335994820_b1654713383113">overall</strong> indicates all the statistics that have been collected since the cluster startup, <strong id="css_01_0178__en-us_topic_0000001335994820_b1571364931219">last_one_day</strong> indicates the statistics collected in the last day, and <strong id="css_01_0178__en-us_topic_0000001335994820_b14781191117137">latest</strong> indicates the statistics that have been collected since the last reset.</li><li id="css_01_0178__en-us_topic_0000001335994820_li1184510523535">The calculated P99 latency is an estimation. It is more precise than the P50 latency.</li><li id="css_01_0178__en-us_topic_0000001335994820_li11211650135617">The P99 latency of a cluster is cleared and recalculated if the cluster is restarted.</li></ul>
</div></div>
</li></ol>
</div>
<div class="section" id="css_01_0178__en-us_topic_0000001335994820_section163371253125617"><h4 class="sectiontitle">Other Operations</h4><ul id="css_01_0178__en-us_topic_0000001335994820_ul45331944145717"><li id="css_01_0178__en-us_topic_0000001335994820_li153314425717">Define percentage.<div class="p" id="css_01_0178__en-us_topic_0000001335994820_p48411355165811"><a name="css_01_0178__en-us_topic_0000001335994820_li153314425717"></a><a name="en-us_topic_0000001335994820_li153314425717"></a>You can run the following command to specify the percentage:<pre class="screen" id="css_01_0178__en-us_topic_0000001335994820_screen841112813593">GET /search/stats/percentile
{
"percents": [1, 50, 90]
}</pre>
</div>
</li><li id="css_01_0178__en-us_topic_0000001335994820_li557220521582">Reset the <strong id="css_01_0178__en-us_topic_0000001335994820_b6104124011174">latest</strong> statistics.<div class="p" id="css_01_0178__en-us_topic_0000001335994820_p38695386591">You can run the following command to reset the <strong id="css_01_0178__en-us_topic_0000001335994820_b592992311177">latest</strong> statistics:<pre class="screen" id="css_01_0178__en-us_topic_0000001335994820_screen151133713593">POST /search/stats/reset</pre>
</div>
<p id="css_01_0178__en-us_topic_0000001335994820_p1351153720595">Example response:</p>
<pre class="screen" id="css_01_0178__en-us_topic_0000001335994820_screen19511437115920">{
"nodes" : {
"css-c9c8-ess-esn-1-1" : "ok"
}
}</pre>
</li></ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_01_0177.html">Enhanced Cluster Monitoring</a></div>
</div>
</div>