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>
177 lines
15 KiB
HTML
177 lines
15 KiB
HTML
<a name="css_01_0145"></a><a name="css_01_0145"></a>
|
|
|
|
<h1 class="topictitle1">Flow Control</h1>
|
|
<div id="body0000001273451905"><p id="css_01_0145__en-us_topic_0000001273451905_p1516217476362">Flow control can be implemented via an independent API.</p>
|
|
<ol id="css_01_0145__en-us_topic_0000001273451905_ol927111214106"><li id="css_01_0145__en-us_topic_0000001273451905_li1274916552817">Log in to the CSS management console.</li><li id="css_01_0145__en-us_topic_0000001273451905_li1274935516811">Choose <strong id="css_01_0145__en-us_topic_0000001273451905_b9269151216514">Clusters</strong> in the navigation pane. On the <strong id="css_01_0145__en-us_topic_0000001273451905_b394681883018">Clusters</strong> page, locate the target cluster and click <strong id="css_01_0145__en-us_topic_0000001273451905_b10952518143011">Access Kibana</strong> in the <strong id="css_01_0145__en-us_topic_0000001273451905_b13952818173016">Operation</strong> column.</li><li id="css_01_0145__en-us_topic_0000001273451905_li927171291011">In the navigation pane on the left, choose <strong id="css_01_0145__en-us_topic_0000001273451905_b125321053105914">Dev Tools</strong> and run the commands to query traffic control information.<ul id="css_01_0145__en-us_topic_0000001273451905_ul19124627174116"><li id="css_01_0145__en-us_topic_0000001273451905_li1124132724114">Check the traffic control status of all nodes.<pre class="screen" id="css_01_0145__en-us_topic_0000001273451905_screen39443424212">GET /_nodes/stats/filter</pre>
|
|
</li><li id="css_01_0145__en-us_topic_0000001273451905_li6489194354113">View the traffic control status of a specific node.<pre class="screen" id="css_01_0145__en-us_topic_0000001273451905_screen137338134019">GET /_nodes/<em id="css_01_0145__en-us_topic_0000001273451905_i10687102019424">{nodeId}</em>/stats/filter</pre>
|
|
<p id="css_01_0145__en-us_topic_0000001273451905_p1721846124219"><strong id="css_01_0145__en-us_topic_0000001273451905_b891984116107">{nodeId}</strong> indicates the ID of the node you want to check.</p>
|
|
</li></ul>
|
|
<p id="css_01_0145__en-us_topic_0000001273451905_p14260123314312">Example response:</p>
|
|
<pre class="screen" id="css_01_0145__en-us_topic_0000001273451905_screen18852015217">{
|
|
"_nodes" : {
|
|
"total" : 1,
|
|
"successful" : 1,
|
|
"failed" : 0
|
|
},
|
|
"cluster_name" : "css-flowcontroller",
|
|
"nodes" : {
|
|
"ElBRNCMbTj6L1C-Wke-Dnw" : {
|
|
"name" : "css-flowcontroller-ess-esn-1-1",
|
|
"host" : "10.0.0.133",
|
|
"timestamp" : 1613979513747,
|
|
"flow_control" : {
|
|
"transport" : {
|
|
"concurrent_req" : 0,
|
|
"rejected_concurrent" : 0,
|
|
"rejected_new" : 0,
|
|
"rejected_deny" : 0
|
|
},
|
|
"http" : {
|
|
"concurrent_req" : 0,
|
|
"rejected_concurrent" : 0,
|
|
"rejected_new" : 0,
|
|
"rejected_deny" : 0
|
|
},
|
|
"memory" : {
|
|
"memory_allow" : 41,
|
|
"memory_rejected" : 0
|
|
},
|
|
"cpu": {
|
|
"rejected_cpu" : 0
|
|
}
|
|
"ip_address" : [
|
|
{
|
|
"ip" : "/10.0.0.198",
|
|
"count" : 453
|
|
},
|
|
{
|
|
"ip" : "/198.19.49.1",
|
|
"count" : 42
|
|
}
|
|
],
|
|
"url_sample" : [
|
|
{
|
|
"url" : "/*/_search?pretty=true",
|
|
"method" : "GET",
|
|
"remote_address" : "/10.0.0.198:16763",
|
|
"count" : 1
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}</pre>
|
|
<p id="css_01_0145__en-us_topic_0000001273451905_p146754115458">In the response, the information of each node is separated. The <strong id="css_01_0145__en-us_topic_0000001273451905_b1699818524177">http</strong> field records the numbers of concurrent connections and new connections. The <strong id="css_01_0145__en-us_topic_0000001273451905_b912890171919">memory</strong> records memory flow control statistics. The <strong id="css_01_0145__en-us_topic_0000001273451905_b626910515191">ip_address</strong> field records the recent client IP addresses that are accessed most recently. The <strong id="css_01_0145__en-us_topic_0000001273451905_b20437650111917">url_sample</strong> field records the recent URLs that are requested most frequently. The <strong id="css_01_0145__en-us_topic_0000001273451905_b1590711156275">cpu</strong> field records CPU flow control statistics.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_01_0145__en-us_topic_0000001273451905_table1065614178495" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Response parameters</caption><thead align="left"><tr id="css_01_0145__en-us_topic_0000001273451905_row18656317174912"><th align="left" class="cellrowborder" valign="top" width="28.59%" id="mcps1.3.2.3.6.2.3.1.1"><p id="css_01_0145__en-us_topic_0000001273451905_p1765671717491">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="71.41%" id="mcps1.3.2.3.6.2.3.1.2"><p id="css_01_0145__en-us_topic_0000001273451905_p1165610175492">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_01_0145__en-us_topic_0000001273451905_row13656217104911"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.3.6.2.3.1.1 "><p id="css_01_0145__en-us_topic_0000001273451905_p156562174493">concurrent_req</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.3.6.2.3.1.2 "><p id="css_01_0145__en-us_topic_0000001273451905_p15656131717492">Number of TCP connections of a node, which is recorded no matter whether flow control is enabled. This value is similar to the value of <strong id="css_01_0145__en-us_topic_0000001273451905_b6194143203315">current_open</strong> of the <strong id="css_01_0145__en-us_topic_0000001273451905_b313823553317">GET /_nodes/stats/http</strong> API but is smaller, because whitelisted IP addresses and internal node IP addresses are not counted.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0145__en-us_topic_0000001273451905_row665651784917"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.3.6.2.3.1.1 "><p id="css_01_0145__en-us_topic_0000001273451905_p76561617124919">rejected_concurrent</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.3.6.2.3.1.2 "><p id="css_01_0145__en-us_topic_0000001273451905_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_0145__en-us_topic_0000001273451905_row10656317204915"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.3.6.2.3.1.1 "><p id="css_01_0145__en-us_topic_0000001273451905_p4656121784915">rejected_new</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.3.6.2.3.1.2 "><p id="css_01_0145__en-us_topic_0000001273451905_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_0145__en-us_topic_0000001273451905_row1656201714916"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.3.6.2.3.1.1 "><p id="css_01_0145__en-us_topic_0000001273451905_p2065618170492">rejected_deny</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.3.6.2.3.1.2 "><p id="css_01_0145__en-us_topic_0000001273451905_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_0145__en-us_topic_0000001273451905_row365611178493"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.3.6.2.3.1.1 "><p id="css_01_0145__en-us_topic_0000001273451905_p665651718493">memory_allow</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.3.6.2.3.1.2 "><p id="css_01_0145__en-us_topic_0000001273451905_p2656181711491">Number of allowed requests during memory flow control. This parameter takes effect when memory flow control is enabled, and its value is not cleared after memory flow control is disabled. The requests from the paths in the <strong id="css_01_0145__en-us_topic_0000001273451905_b036193419319">allow_path</strong> whitelist are not recorded. If <strong id="css_01_0145__en-us_topic_0000001273451905_b1699117399317">allow_path</strong> is set to <strong id="css_01_0145__en-us_topic_0000001273451905_b8478241238">**</strong>, no requests are recorded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0145__en-us_topic_0000001273451905_row865618172497"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.3.6.2.3.1.1 "><p id="css_01_0145__en-us_topic_0000001273451905_p76561617174912">memory_rejected</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.3.6.2.3.1.2 "><p id="css_01_0145__en-us_topic_0000001273451905_p7656171774914">Number of rejected requests during memory flow control. This parameter takes effect when memory flow control is enabled, and its value is not cleared after memory flow control is disabled. The requests from the paths in the <strong id="css_01_0145__en-us_topic_0000001273451905_b85985511457">allow_path</strong> whitelist are not recorded. If <strong id="css_01_0145__en-us_topic_0000001273451905_b859815515515">allow_path</strong> is set to <strong id="css_01_0145__en-us_topic_0000001273451905_b6599105119511">**</strong>, no requests are recorded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0145__en-us_topic_0000001273451905_row106562179493"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.3.6.2.3.1.1 "><p id="css_01_0145__en-us_topic_0000001273451905_p1265661713496">rejected_cpu</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.3.6.2.3.1.2 "><p id="css_01_0145__en-us_topic_0000001273451905_p16560173496">Number of requests rejected when the CPU flow control threshold is exceeded. This parameter takes effect when CPU flow control is enabled, and its value is not cleared after CPU flow control is disabled.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0145__en-us_topic_0000001273451905_row11656121713492"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.3.6.2.3.1.1 "><p id="css_01_0145__en-us_topic_0000001273451905_p106562179495">ip_address</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.3.6.2.3.1.2 "><p id="css_01_0145__en-us_topic_0000001273451905_p1965671717493">IP addresses and the number of requests. For details, see <a href="#css_01_0145__en-us_topic_0000001273451905_table8881825155010">Table 2</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0145__en-us_topic_0000001273451905_row1465671717496"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.3.6.2.3.1.1 "><p id="css_01_0145__en-us_topic_0000001273451905_p1365651715493">url_sample</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.3.6.2.3.1.2 "><p id="css_01_0145__en-us_topic_0000001273451905_p1765691712494">Request path sampling. The number of URLs of a request are collected based on the configured time and sampling interval. For details, see <a href="#css_01_0145__en-us_topic_0000001273451905_table72712520501">Table 3</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="css_01_0145__en-us_topic_0000001273451905_table8881825155010"></a><a name="en-us_topic_0000001273451905_table8881825155010"></a><table cellpadding="4" cellspacing="0" summary="" id="css_01_0145__en-us_topic_0000001273451905_table8881825155010" frame="border" border="1" rules="all"><caption><b>Table 2 </b>ip_address</caption><thead align="left"><tr id="css_01_0145__en-us_topic_0000001273451905_row388132545014"><th align="left" class="cellrowborder" valign="top" width="28.59%" id="mcps1.3.2.3.7.2.3.1.1"><p id="css_01_0145__en-us_topic_0000001273451905_p588120256501">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="71.41%" id="mcps1.3.2.3.7.2.3.1.2"><p id="css_01_0145__en-us_topic_0000001273451905_p12881122555015">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_01_0145__en-us_topic_0000001273451905_row38813255503"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.3.7.2.3.1.1 "><p id="css_01_0145__en-us_topic_0000001273451905_p88818253500">ip</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.3.7.2.3.1.2 "><p id="css_01_0145__en-us_topic_0000001273451905_p10881102515016">Source IP address for accessing the node.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0145__en-us_topic_0000001273451905_row178811252503"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.3.7.2.3.1.1 "><p id="css_01_0145__en-us_topic_0000001273451905_p188111259501">method</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.3.7.2.3.1.2 "><p id="css_01_0145__en-us_topic_0000001273451905_p20881112585012">Number of access requests from an IP address.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="css_01_0145__en-us_topic_0000001273451905_table72712520501"></a><a name="en-us_topic_0000001273451905_table72712520501"></a><table cellpadding="4" cellspacing="0" summary="" id="css_01_0145__en-us_topic_0000001273451905_table72712520501" frame="border" border="1" rules="all"><caption><b>Table 3 </b>url_sample</caption><thead align="left"><tr id="css_01_0145__en-us_topic_0000001273451905_row13271165211507"><th align="left" class="cellrowborder" valign="top" width="28.59%" id="mcps1.3.2.3.8.2.3.1.1"><p id="css_01_0145__en-us_topic_0000001273451905_p9271165210508">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="71.41%" id="mcps1.3.2.3.8.2.3.1.2"><p id="css_01_0145__en-us_topic_0000001273451905_p202711952165011">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_01_0145__en-us_topic_0000001273451905_row162717528509"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.3.8.2.3.1.1 "><p id="css_01_0145__en-us_topic_0000001273451905_p6271952205011">url</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.3.8.2.3.1.2 "><p id="css_01_0145__en-us_topic_0000001273451905_p52719521507">Request URL</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0145__en-us_topic_0000001273451905_row9271175218500"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.3.8.2.3.1.1 "><p id="css_01_0145__en-us_topic_0000001273451905_p142711352115013">method</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.3.8.2.3.1.2 "><p id="css_01_0145__en-us_topic_0000001273451905_p22712523504">Method corresponding to the request path</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0145__en-us_topic_0000001273451905_row22711252115013"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.3.8.2.3.1.1 "><p id="css_01_0145__en-us_topic_0000001273451905_p027111521509">remote_address</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.3.8.2.3.1.2 "><p id="css_01_0145__en-us_topic_0000001273451905_p2027112525508">Source IP address and port number of the request</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0145__en-us_topic_0000001273451905_row15271185212507"><td class="cellrowborder" valign="top" width="28.59%" headers="mcps1.3.2.3.8.2.3.1.1 "><p id="css_01_0145__en-us_topic_0000001273451905_p227145225016">count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.41%" headers="mcps1.3.2.3.8.2.3.1.2 "><p id="css_01_0145__en-us_topic_0000001273451905_p13271205215013">How many times a path is sampled</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ol>
|
|
</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>
|
|
|