-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport/backport 1447 to 1.3 (#1497)
* Adds nodes stats API (#1369) Reconciled master terminology * Adds nodes stats API Signed-off-by: Fanit Kolchina <[email protected]> * Refactored hot threads and info APIs Signed-off-by: Fanit Kolchina <[email protected]> * Incorporated doc review comments Signed-off-by: Fanit Kolchina <[email protected]> * Incorporated review feedback Signed-off-by: Fanit Kolchina <[email protected]> * Formatting changes Signed-off-by: Fanit Kolchina <[email protected]> * Update _opensearch/rest-api/nodes-apis/index.md Co-authored-by: Nate Bower <[email protected]> * Update _opensearch/rest-api/nodes-apis/index.md Co-authored-by: Nate Bower <[email protected]> * Update _opensearch/rest-api/nodes-apis/index.md Co-authored-by: Nate Bower <[email protected]> * Update _opensearch/rest-api/nodes-apis/index.md Co-authored-by: Nate Bower <[email protected]> * Update _opensearch/rest-api/nodes-apis/index.md Co-authored-by: Nate Bower <[email protected]> * Update _opensearch/rest-api/nodes-apis/index.md Co-authored-by: Nate Bower <[email protected]> * Update _opensearch/rest-api/nodes-apis/index.md Co-authored-by: Nate Bower <[email protected]> * Update _opensearch/rest-api/nodes-apis/index.md Co-authored-by: Nate Bower <[email protected]> * Update _opensearch/rest-api/nodes-apis/index.md Co-authored-by: Nate Bower <[email protected]> * Update _opensearch/rest-api/nodes-apis/index.md Co-authored-by: Nate Bower <[email protected]> * Update nodes-hot-threads.md * Update nodes-hot-threads.md * Update nodes-hot-threads.md * Update nodes-info.md * Update nodes-info.md * Update _opensearch/rest-api/nodes-apis/nodes-info.md Co-authored-by: Nate Bower <[email protected]> * Update _opensearch/rest-api/nodes-apis/nodes-info.md Co-authored-by: Nate Bower <[email protected]> * Update _opensearch/rest-api/nodes-apis/nodes-info.md Co-authored-by: Nate Bower <[email protected]> * Update nodes-info.md * Update nodes-info.md * Update _opensearch/rest-api/nodes-apis/nodes-info.md Co-authored-by: Nate Bower <[email protected]> * Update _opensearch/rest-api/nodes-apis/nodes-info.md Co-authored-by: Nate Bower <[email protected]> * Update nodes-info.md * Update _opensearch/rest-api/nodes-apis/nodes-info.md Co-authored-by: Nate Bower <[email protected]> * Update _opensearch/rest-api/nodes-apis/nodes-info.md Co-authored-by: Nate Bower <[email protected]> * Update _opensearch/rest-api/nodes-apis/nodes-info.md Co-authored-by: Nate Bower <[email protected]> * Update nodes-stats.md * Incorporated nodes stats editorial comments Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: Fanit Kolchina <[email protected]> Co-authored-by: Nate Bower <[email protected]> (cherry picked from commit 85b18f7) * Fixed KNN search formulas (#1447) Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: Fanit Kolchina <[email protected]> (cherry picked from commit 2c74943) Reconciled kNN formulas for 1.3. * Update index.md * Update nodes-stats.md
- Loading branch information
1 parent
457413d
commit cab2600
Showing
6 changed files
with
1,158 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ layout: default | |
title: Nodes hot threads | ||
parent: Nodes APIs | ||
grand_parent: REST API reference | ||
nav_order: 10 | ||
nav_order: 30 | ||
--- | ||
|
||
# Nodes hot threads | ||
|
@@ -18,24 +18,49 @@ GET /_nodes/hot_threads | |
|
||
## Path and HTTP methods | ||
|
||
```bash | ||
```json | ||
GET /_nodes/hot_threads | ||
GET /_nodes/{nodeId}/hot_threads | ||
GET /_nodes/<nodeId>/hot_threads | ||
``` | ||
|
||
## URL parameters | ||
## Path parameters | ||
|
||
You can include the following optional path parameter in your request. | ||
|
||
Parameter | Type | Description | ||
:--- | :--- | :--- | ||
nodeId | String | A comma-separated list of node IDs used to filter results. Supports [node filters]({{site.url}}{{site.baseurl}}/opensearch/rest-api/nodes-apis/index/#node-filters). Defaults to `_all`. | ||
|
||
You can include the following URL parameters in your request. All parameters are optional. | ||
## Query parameters | ||
|
||
Parameter | Type | Description | ||
:--- |:----------| :--- | ||
nodeId | String | A comma-separated list of node IDs to filter results. Supports [node filters]({{site.url}}{{site.baseurl}}/opensearch/rest-api/nodes-apis/index/#node-filters). Defaults to `_all`. | ||
snapshots | Integer | Number of samples of thread stacktraces. Defaults to `10`. | ||
interval | TimeValue | Interval between consecutive samples. Defaults to `500ms`. | ||
threads | Integer | A number of top busiest threads to return information about. Defaults to `3`. | ||
ignore_idle_threads | Boolean | Don’t show threads that are in known-idle states, such as waiting on a socket select or pulling from an empty task queue. Defaults to `true`. | ||
type | String | Supported thread types are `cpu`, `wait`, or `block`. Defaults to `cpu`. | ||
timeout | TimeValue | A request [timeout]({{site.url}}{{site.baseurl}}/opensearch/rest-api/nodes-apis/index/#timeout). Defaults to `30s`. | ||
You can include the following query parameters in your request. All query parameters are optional. | ||
|
||
Parameter | Type | Description | ||
:--- | :---| :--- | ||
snapshots | Integer | The number of samples of thread stacktraces. Defaults to `10`. | ||
interval | Time | The interval between consecutive samples. Defaults to `500ms`. | ||
threads | Integer | The number of the busiest threads to return information about. Defaults to `3`. | ||
ignore_idle_threads | Boolean | Don’t show threads that are in known idle states, such as waiting on a socket select or pulling from an empty task queue. Defaults to `true`. | ||
type | String | Supported thread types are `cpu`, `wait`, or `block`. Defaults to `cpu`. | ||
timeout | Time | Sets the time limit for node response. Default value is `30s`. | ||
|
||
#### Sample request | ||
|
||
```json | ||
GET /_nodes/hot_threads | ||
``` | ||
|
||
#### Sample response | ||
|
||
```bash | ||
::: {opensearch}{F-ByTQzVQ3GQeYzQJArJGQ}{GxbcLdCATPWggOuQHJAoCw}{127.0.0.1}{127.0.0.1:9300}{dimr}{shard_indexing_pressure_enabled=true} | ||
Hot threads at 2022-09-29T19:46:44.533Z, interval=500ms, busiestThreads=3, ignoreIdleThreads=true: | ||
|
||
0.1% (455.5micros out of 500ms) cpu usage by thread 'ScheduledMetricCollectorsExecutor' | ||
10/10 snapshots sharing following 2 elements | ||
[email protected]/java.lang.Thread.sleep(Native Method) | ||
org.opensearch.performanceanalyzer.collectors.ScheduledMetricCollectorsExecutor.run(ScheduledMetricCollectorsExecutor.java:100) | ||
``` | ||
|
||
## Response | ||
|
||
|
@@ -56,7 +81,7 @@ Line segment | Description | |
`{dimr}` | Node roles (d=data, i=ingest, m=cluster manager, r=remote cluster client). | ||
`{zone=west-a2, shard_indexing_pressure_enabled=true}` | Node attributes. | ||
|
||
Then follows information about threads of selected type. | ||
Then information about threads of the selected type is provided. | ||
|
||
```bash | ||
::: {global-eu-35}{uFPbKLDOTlOmdnwUlKW8sw}{OAM8OT5CQAyasWuIDeVyUA}{global-eu-35.local}{[gdv2:a284:2acv:5fa6:0:3a2:7260:74cf]:9300}{dimr}{zone=west-a2, shard_indexing_pressure_enabled=true} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.