nodes-hot-threads.asciidoc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. [[cluster-nodes-hot-threads]]
  2. === Nodes hot threads API
  3. ++++
  4. <titleabbrev>Nodes hot threads</titleabbrev>
  5. ++++
  6. Returns the hot threads on each selected node in the cluster.
  7. [[cluster-nodes-hot-threads-api-request]]
  8. ==== {api-request-title}
  9. `GET /_nodes/hot_threads` +
  10. `GET /_nodes/<node_id>/hot_threads`
  11. [[cluster-nodes-hot-threads-api-desc]]
  12. ==== {api-description-title}
  13. This API yields a breakdown of the hot threads on each selected node in the
  14. cluster. The output is plain text with a breakdown of each node's top hot
  15. threads.
  16. [[cluster-nodes-hot-threads-api-path-params]]
  17. ==== {api-path-parms-title}
  18. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=node-id]
  19. [[cluster-nodes-hot-threads-api-query-params]]
  20. ==== {api-query-parms-title}
  21. `ignore_idle_threads`::
  22. (Optional, boolean) If true, known idle threads (e.g. waiting in a socket
  23. select, or to get a task from an empty queue) are filtered out. Defaults to
  24. true.
  25. `interval`::
  26. (Optional, <<time-units, time units>>) The interval to do the second
  27. sampling of threads. Defaults to `500ms`.
  28. `snapshots`::
  29. (Optional, integer) Number of samples of thread stacktrace. Defaults to
  30. `10`.
  31. `threads`::
  32. (Optional, integer) Specifies the number of hot threads to provide
  33. information for. Defaults to `3`.
  34. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
  35. `type`::
  36. (Optional, string) The type to sample. Available options are `block`, `cpu`, and
  37. `wait`. Defaults to `cpu`.
  38. [[cluster-nodes-hot-threads-api-example]]
  39. ==== {api-examples-title}
  40. [source,console]
  41. --------------------------------------------------
  42. GET /_nodes/hot_threads
  43. GET /_nodes/nodeId1,nodeId2/hot_threads
  44. --------------------------------------------------