mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
242e631e95
Add a new ignore_idle_threads boolean option (default true) to /_nodes/hot_threads, to filter out threads in known idle places like waiting on a socket select or on pulling the next task from an empty queue. Closes #8985 Closes #8908
19 lines
768 B
Plaintext
19 lines
768 B
Plaintext
[[cluster-nodes-hot-threads]]
|
|
== Nodes hot_threads
|
|
|
|
An API allowing to get the current hot threads on each node in the
|
|
cluster. Endpoints are `/_nodes/hot_threads`, and
|
|
`/_nodes/{nodesIds}/hot_threads`.
|
|
|
|
The output is plain text with a breakdown of each node's top hot
|
|
threads. Parameters allowed are:
|
|
|
|
[horizontal]
|
|
`threads`:: number of hot threads to provide, defaults to 3.
|
|
`interval`:: the interval to do the second sampling of threads.
|
|
Defaults to 500ms.
|
|
`type`:: The type to sample, defaults to cpu, but supports wait and
|
|
block to see hot threads that are in wait or block state.
|
|
`ignore_idle_threads`:: If true, known idle threads (e.g. waiting in a socket select, or to
|
|
get a task from an empty queue) are filtered out. Defaults to true.
|