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

108 lines
9.2 KiB
HTML

<a name="css_01_0198"></a><a name="css_01_0198"></a>
<h1 class="topictitle1">Access Statistics and Traffic Control Information Query</h1>
<div id="body0000001435180316"><p id="css_01_0198__en-us_topic_0000001435180316_p1516217476362">Flow control can be implemented via an independent API.</p>
<div class="section" id="css_01_0198__en-us_topic_0000001435180316_section79278483222"><h4 class="sectiontitle">Procedure</h4><ol id="css_01_0198__en-us_topic_0000001435180316_ol143411173235"><li id="css_01_0198__en-us_topic_0000001435180316_li1464711052317">Log in to the CSS management console.</li><li id="css_01_0198__en-us_topic_0000001435180316_li167810131237">Choose <strong id="css_01_0198__en-us_topic_0000001435180316_b1531645624820">Clusters</strong> in the navigation pane. On the <strong id="css_01_0198__en-us_topic_0000001435180316_b331613567486">Clusters</strong> page, locate the target cluster and click <strong id="css_01_0198__en-us_topic_0000001435180316_b431765619485">Access Kibana</strong> in the <strong id="css_01_0198__en-us_topic_0000001435180316_b5318205634816">Operation</strong> column.</li><li id="css_01_0198__en-us_topic_0000001435180316_li113411370234">In the navigation pane on the left, choose <strong id="css_01_0198__en-us_topic_0000001435180316_b63477587487">Dev Tools</strong> and run the commands to query traffic control information.<ul id="css_01_0198__en-us_topic_0000001435180316_ul19124627174116"><li id="css_01_0198__en-us_topic_0000001435180316_li1124132724114">Check the traffic control status of all nodes.<pre class="screen" id="css_01_0198__en-us_topic_0000001435180316_screen39443424212">GET /_nodes/stats/filter/v2</pre>
</li><li id="css_01_0198__en-us_topic_0000001435180316_li1931146103111">View traffic control details of all nodes.<pre class="screen" id="css_01_0198__en-us_topic_0000001435180316_screen123174618312">GET /_nodes/stats/filter/v2?detail</pre>
</li><li id="css_01_0198__en-us_topic_0000001435180316_li6489194354113">View the traffic control status of a specific node.<pre class="screen" id="css_01_0198__en-us_topic_0000001435180316_screen9507113922510">GET /_nodes/<em id="css_01_0198__en-us_topic_0000001435180316_i8507123972519">{nodeId}</em>/stats/filter/v2</pre>
<p id="css_01_0198__en-us_topic_0000001435180316_p647618221453"><strong id="css_01_0198__en-us_topic_0000001435180316_b543882116497">{nodeId}</strong> indicates the ID of the node you want to check.</p>
<p id="css_01_0198__en-us_topic_0000001435180316_p14260123314312">Example response:</p>
<pre class="screen" id="css_01_0198__en-us_topic_0000001435180316_screen18852015217">{
"_nodes" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"cluster_name" : "css-xxxx",
"nodes" : {
"d3qnVIpPTtSoadkV0LQEkA" : {
"name" : "css-xxxx-ess-esn-1-1",
"host" : "192.168.x.x",
"timestamp" : 1672236425112,
"flow_control" : {
"http" : {
"current_connect" : 52,
"rejected_concurrent" : 0,
"rejected_rate" : 0,
"rejected_black" : 0,
"rejected_breaker" : 0
},
"access_items" : [
{
"remote_address" : "10.0.0.x",
"search_count" : 0,
"bulk_count" : 0,
"other_count" : 4
}
],
"holding_requests" : 0
}
}
}
}</pre>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_01_0198__en-us_topic_0000001435180316_table1065614178495" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Response parameters</caption><thead align="left"><tr id="css_01_0198__en-us_topic_0000001435180316_row18656317174912"><th align="left" class="cellrowborder" valign="top" width="28.59%" id="mcps1.3.2.2.3.2.3.5.2.3.1.1"><p id="css_01_0198__en-us_topic_0000001435180316_p1765671717491">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="71.41%" id="mcps1.3.2.2.3.2.3.5.2.3.1.2"><p id="css_01_0198__en-us_topic_0000001435180316_p1165610175492">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_01_0198__en-us_topic_0000001435180316_row13656217104911"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.1 "><p id="css_01_0198__en-us_topic_0000001435180316_p156562174493">current_connect</p>
</td>
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.2 "><p id="css_01_0198__en-us_topic_0000001435180316_p15656131717492">Number of HTTP connections of a node, which is recorded even if flow control is disabled. This value is equal to the <strong id="css_01_0198__en-us_topic_0000001435180316_b1789233815917">current_open</strong> value of <strong id="css_01_0198__en-us_topic_0000001435180316_b235374315910">GET /_nodes/stats/http</strong> API. It includes the current client connections of nodes.</p>
</td>
</tr>
<tr id="css_01_0198__en-us_topic_0000001435180316_row665651784917"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.1 "><p id="css_01_0198__en-us_topic_0000001435180316_p76561617124919">rejected_concurrent</p>
</td>
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.2 "><p id="css_01_0198__en-us_topic_0000001435180316_p1665641719499">Number of concurrent connections rejected during HTTP flow control. This value is not cleared when HTTP flow control is disabled.</p>
</td>
</tr>
<tr id="css_01_0198__en-us_topic_0000001435180316_row10656317204915"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.1 "><p id="css_01_0198__en-us_topic_0000001435180316_p4656121784915">rejected_rate</p>
</td>
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.2 "><p id="css_01_0198__en-us_topic_0000001435180316_p18656161713496">Number of new connections rejected during HTTP flow control. This value is not cleared when HTTP flow control is disabled.</p>
</td>
</tr>
<tr id="css_01_0198__en-us_topic_0000001435180316_row1656201714916"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.1 "><p id="css_01_0198__en-us_topic_0000001435180316_p2065618170492">rejected_black</p>
</td>
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.2 "><p id="css_01_0198__en-us_topic_0000001435180316_p5656151794916">Number of requests rejected based on the blacklist during HTTP flow control. This value is not cleared when HTTP flow control is disabled.</p>
</td>
</tr>
<tr id="css_01_0198__en-us_topic_0000001435180316_row365611178493"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.1 "><p id="css_01_0198__en-us_topic_0000001435180316_p665651718493">rejected_breaker</p>
</td>
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.2 "><p id="css_01_0198__en-us_topic_0000001435180316_p2656181711491">Number of rejected new connections after one-click traffic blocking is enabled.</p>
</td>
</tr>
<tr id="css_01_0198__en-us_topic_0000001435180316_row865618172497"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.1 "><p id="css_01_0198__en-us_topic_0000001435180316_p1587132771218">remote_address</p>
</td>
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.2 "><p id="css_01_0198__en-us_topic_0000001435180316_p1965671717493">IP addresses and the number of requests.</p>
</td>
</tr>
<tr id="css_01_0198__en-us_topic_0000001435180316_row106562179493"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.1 "><p id="css_01_0198__en-us_topic_0000001435180316_p1265661713496">search_count</p>
</td>
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.2 "><p id="css_01_0198__en-us_topic_0000001435180316_p16560173496">Number of times that a client accessed a database using <strong id="css_01_0198__en-us_topic_0000001435180316_b583893717210">_search</strong> and <strong id="css_01_0198__en-us_topic_0000001435180316_b14956406214">_msearch</strong>.</p>
</td>
</tr>
<tr id="css_01_0198__en-us_topic_0000001435180316_row11656121713492"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.1 "><p id="css_01_0198__en-us_topic_0000001435180316_p106562179495">bulk_count</p>
</td>
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.2 "><p id="css_01_0198__en-us_topic_0000001435180316_p123858583121">Number of times that a client accessed a database using <strong id="css_01_0198__en-us_topic_0000001435180316_b45896616317">_bulk</strong>.</p>
</td>
</tr>
<tr id="css_01_0198__en-us_topic_0000001435180316_row1465671717496"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.1 "><p id="css_01_0198__en-us_topic_0000001435180316_p1365651715493">other_count</p>
</td>
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.2.3.2.3.5.2.3.1.2 "><p id="css_01_0198__en-us_topic_0000001435180316_p1765691712494">Number of times that a client accessed a database using other requests.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_01_0191.html">Flow Control 2.0</a></div>
</div>
</div>