forked from docs/doc-exports
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>
74 lines
7.9 KiB
HTML
74 lines
7.9 KiB
HTML
<a name="css_01_0144"></a><a name="css_01_0144"></a>
|
|
|
|
<h1 class="topictitle1">Request Sampling</h1>
|
|
<div id="body0000001229251898"><div class="section" id="css_01_0144__en-us_topic_0000001229251898_section104847386416"><h4 class="sectiontitle">Context</h4><p id="css_01_0144__en-us_topic_0000001229251898_p1739951703012">Request sampling can record the access IP addresses, the number of accessed nodes, request paths, request URLs, and request bodies, which can be used to obtain the IP addresses and paths of clients that have sent a large number of access requests.</p>
|
|
<p id="css_01_0144__en-us_topic_0000001229251898_p1327218103711">The following table describes request sampling parameters.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_01_0144__en-us_topic_0000001229251898_table119653339296" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request sampling parameters</caption><thead align="left"><tr id="css_01_0144__en-us_topic_0000001229251898_row4965733122914"><th align="left" class="cellrowborder" valign="top" width="33.5033503350335%" id="mcps1.3.1.4.2.4.1.1"><p id="css_01_0144__en-us_topic_0000001229251898_p2966183317293">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.58165816581658%" id="mcps1.3.1.4.2.4.1.2"><p id="css_01_0144__en-us_topic_0000001229251898_p179661933182914">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="49.91499149914991%" id="mcps1.3.1.4.2.4.1.3"><p id="css_01_0144__en-us_topic_0000001229251898_p8966123313297">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_01_0144__en-us_topic_0000001229251898_row59660338299"><td class="cellrowborder" valign="top" width="33.5033503350335%" headers="mcps1.3.1.4.2.4.1.1 "><p id="css_01_0144__en-us_topic_0000001229251898_p20966123318294">flowcontrol.statics.enabled</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.58165816581658%" headers="mcps1.3.1.4.2.4.1.2 "><p id="css_01_0144__en-us_topic_0000001229251898_p1966153362915">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.91499149914991%" headers="mcps1.3.1.4.2.4.1.3 "><p id="css_01_0144__en-us_topic_0000001229251898_p13966133316299">Whether to enable request sampling. Request sampling may affect node performance.</p>
|
|
<p id="css_01_0144__en-us_topic_0000001229251898_p69661833202916">Value: <strong id="css_01_0144__en-us_topic_0000001229251898_b12362773231729">true</strong> or <strong id="css_01_0144__en-us_topic_0000001229251898_b76156429131729">false</strong></p>
|
|
<p id="css_01_0144__en-us_topic_0000001229251898_p1296643319296">Default value: <strong id="css_01_0144__en-us_topic_0000001229251898_b37147679931729">false</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0144__en-us_topic_0000001229251898_row7966933172918"><td class="cellrowborder" valign="top" width="33.5033503350335%" headers="mcps1.3.1.4.2.4.1.1 "><p id="css_01_0144__en-us_topic_0000001229251898_p896643332915">flowcontrol.statics.threshold</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.58165816581658%" headers="mcps1.3.1.4.2.4.1.2 "><p id="css_01_0144__en-us_topic_0000001229251898_p1396603312913">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.91499149914991%" headers="mcps1.3.1.4.2.4.1.3 "><p id="css_01_0144__en-us_topic_0000001229251898_p15966733132916">Number of recent access requests whose statistics are collected. The value <strong id="css_01_0144__en-us_topic_0000001229251898_b66416015313">100</strong> indicates that statistics will be collected on the 100 IP addresses and 100 URLs that are most frequently accessed.</p>
|
|
<p id="css_01_0144__en-us_topic_0000001229251898_p189661533182911">Minimum value: <strong id="css_01_0144__en-us_topic_0000001229251898_b1979574194117">10</strong></p>
|
|
<p id="css_01_0144__en-us_topic_0000001229251898_p189668331295">Maximum value: <strong id="css_01_0144__en-us_topic_0000001229251898_b196663551031729">1000</strong></p>
|
|
<p id="css_01_0144__en-us_topic_0000001229251898_p13966163319294">Default value: <strong id="css_01_0144__en-us_topic_0000001229251898_b118236250231729">100</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0144__en-us_topic_0000001229251898_row19966533112920"><td class="cellrowborder" valign="top" width="33.5033503350335%" headers="mcps1.3.1.4.2.4.1.1 "><p id="css_01_0144__en-us_topic_0000001229251898_p14966193332918">flowcontrol.statics.sample_frequency</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.58165816581658%" headers="mcps1.3.1.4.2.4.1.2 "><p id="css_01_0144__en-us_topic_0000001229251898_p19966163312294">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.91499149914991%" headers="mcps1.3.1.4.2.4.1.3 "><p id="css_01_0144__en-us_topic_0000001229251898_p696616337292">Path sampling frequency. If this parameter is set to <strong id="css_01_0144__en-us_topic_0000001229251898_b19964352134117">100</strong>, samples are collected from every 100 requests.</p>
|
|
<p id="css_01_0144__en-us_topic_0000001229251898_p1696603310292">Minimum value: <strong id="css_01_0144__en-us_topic_0000001229251898_b1773981444311">50</strong></p>
|
|
<p id="css_01_0144__en-us_topic_0000001229251898_p796693310294">Default value: <strong id="css_01_0144__en-us_topic_0000001229251898_b74658226831729">100</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="note" id="css_01_0144__en-us_topic_0000001229251898_note940541217334"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="css_01_0144__en-us_topic_0000001229251898_ul54171673310"><li id="css_01_0144__en-us_topic_0000001229251898_li13411616193314">The IP address statistics and URL sampling statistics are cached based on their access time. If the cache space reaches the threshold (<strong id="css_01_0144__en-us_topic_0000001229251898_b6626858112419">flowcontrol.statics.threshold</strong>), the records of the earliest access will be deleted.</li><li id="css_01_0144__en-us_topic_0000001229251898_li14181611336">In URL sampling, an access path is uniquely identified by its URL hash.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="css_01_0144__en-us_topic_0000001229251898_section08193139418"><h4 class="sectiontitle">Procedure</h4><ol id="css_01_0144__en-us_topic_0000001229251898_ol927111214106"><li id="css_01_0144__en-us_topic_0000001229251898_li1274916552817">Log in to the CSS management console.</li><li id="css_01_0144__en-us_topic_0000001229251898_li1274935516811">Choose <strong id="css_01_0144__en-us_topic_0000001229251898_b97921714514">Clusters</strong> in the navigation pane. On the <strong id="css_01_0144__en-us_topic_0000001229251898_b834882845315">Clusters</strong> page, locate the target cluster and click <strong id="css_01_0144__en-us_topic_0000001229251898_b835442885313">Access Kibana</strong> in the <strong id="css_01_0144__en-us_topic_0000001229251898_b4355028185314">Operation</strong> column.</li><li id="css_01_0144__en-us_topic_0000001229251898_li927171291011">In the navigation pane on the left, choose <strong id="css_01_0144__en-us_topic_0000001229251898_b32591405587">Dev Tools</strong> and run commands to enable or disable sampling.<ul id="css_01_0144__en-us_topic_0000001229251898_ul124226616320"><li id="css_01_0144__en-us_topic_0000001229251898_li242217615324">Enabling sampling<pre class="screen" id="css_01_0144__en-us_topic_0000001229251898_screen11422663329">PUT /_cluster/settings
|
|
{
|
|
"persistent": {
|
|
"flowcontrol.statics.enabled": true,
|
|
"flowcontrol.statics.threshold": 100,
|
|
"flowcontrol.statics.sample_frequency": 50
|
|
}
|
|
}</pre>
|
|
</li><li id="css_01_0144__en-us_topic_0000001229251898_li5422861325">Disabling sampling<pre class="screen" id="css_01_0144__en-us_topic_0000001229251898_screen7422156113219">PUT /_cluster/settings
|
|
{
|
|
"persistent": {
|
|
"flowcontrol.statics.enabled": false
|
|
}
|
|
}</pre>
|
|
<p id="css_01_0144__en-us_topic_0000001229251898_p18422969321"></p>
|
|
</li></ul>
|
|
</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_01_0139.html">Flow Control 1.0</a></div>
|
|
</div>
|
|
</div>
|
|
|