From ceab04c9d7787884128c4ed4736456cf927ad26b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Vl=C4=8Dek?= Date: Tue, 4 Jun 2024 06:15:41 +0200 Subject: [PATCH] Add missing weighted_routing nodes stats (#7245) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #7244 Signed-off-by: Lukáš Vlček Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> --- _api-reference/nodes-apis/nodes-stats.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/_api-reference/nodes-apis/nodes-stats.md b/_api-reference/nodes-apis/nodes-stats.md index 1d504aae2e..145b3d5b24 100644 --- a/_api-reference/nodes-apis/nodes-stats.md +++ b/_api-reference/nodes-apis/nodes-stats.md @@ -54,6 +54,7 @@ indexing_pressure | Statistics about the node's indexing pressure. shard_indexing_pressure | Statistics about shard indexing pressure. search_backpressure | Statistics related to search backpressure. cluster_manager_throttling | Statistics related to throttled tasks on the cluster manager node. +weighted_routing | Statistics relevant to weighted round robin requests. resource_usage_stats | Node-level resource usage statistics, such as CPU and JVM memory. admission_control | Statistics about admission control. caches | Statistics about caches. @@ -834,6 +835,7 @@ http.total_opened | Integer | The total number of HTTP connections the node has [shard_indexing_pressure](#shard_indexing_pressure) | Object | Statistics related to indexing pressure at the shard level. [search_backpressure]({{site.url}}{{site.baseurl}}/opensearch/search-backpressure#search-backpressure-stats-api) | Object | Statistics related to search backpressure. [cluster_manager_throttling](#cluster_manager_throttling) | Object | Statistics related to throttled tasks on the cluster manager node. +[weighted_routing](#weighted_routing) | Object | Statistics relevant to weighted round robin requests. [resource_usage_stats](#resource_usage_stats) | Object | Statistics related to resource usage for the node. [admission_control](#admission_control) | Object | Statistics related to admission control for the node. [caches](#caches) | Object | Statistics related to caches on the node. @@ -1294,6 +1296,15 @@ stats | Object | Statistics about throttled tasks on the cluster manager node. stats.total_throttled_tasks | Long | The total number of throttled tasks. stats.throttled_tasks_per_task_type | Object | A breakdown of statistics by individual task type, specified as key-value pairs. The keys are individual task types, and their values represent the number of requests that were throttled. +### `weighted_routing` + +The `weighted_routing` object contains statistics about weighted round robin requests. Specifically, it contains a counter of times this node has server a request while it was "zoned out". + +Field | Field type | Description +:--- |:-----------| :--- +stats | Object | Statistics about weighted routing. +fail_open_count | Integer | Number of times a shard on this node has served a request while the routing weight for the node was set to zero. + ### `resource_usage_stats` The `resource_usage_stats` object contains the resource usage statistics. Each entry is specified by the node ID and has the following properties.