Flow control can be implemented via an independent API.
GET /_nodes/stats/filter/v2
GET /_nodes/stats/filter/v2?detail
GET /_nodes/{nodeId}/stats/filter/v2
{nodeId} indicates the ID of the node you want to check.
Example response:
{ "_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 } } } }
Parameter |
Description |
---|---|
current_connect |
Number of HTTP connections of a node, which is recorded even if flow control is disabled. This value is equal to the current_open value of GET /_nodes/stats/http API. It includes the current client connections of nodes. |
rejected_concurrent |
Number of concurrent connections rejected during HTTP flow control. This value is not cleared when HTTP flow control is disabled. |
rejected_rate |
Number of new connections rejected during HTTP flow control. This value is not cleared when HTTP flow control is disabled. |
rejected_black |
Number of requests rejected based on the blacklist during HTTP flow control. This value is not cleared when HTTP flow control is disabled. |
rejected_breaker |
Number of rejected new connections after one-click traffic blocking is enabled. |
remote_address |
IP addresses and the number of requests. |
search_count |
Number of times that a client accessed a database using _search and _msearch. |
bulk_count |
Number of times that a client accessed a database using _bulk. |
other_count |
Number of times that a client accessed a database using other requests. |