nodes-info.asciidoc 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. [[cluster-nodes-info]]
  2. == Nodes Info
  3. The cluster nodes info API allows to retrieve one or more (or all) of
  4. the cluster nodes information.
  5. [source,js]
  6. --------------------------------------------------
  7. curl -XGET 'http://localhost:9200/_nodes'
  8. curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2'
  9. --------------------------------------------------
  10. The first command retrieves information of all the nodes in the cluster.
  11. The second command selectively retrieves nodes information of only
  12. `nodeId1` and `nodeId2`. All the nodes selective options are explained
  13. <<cluster-nodes,here>>.
  14. By default, it just returns all attributes and core settings for a node:
  15. [float]
  16. [[core-info]]
  17. `build_hash`::
  18. Short hash of the last git commit in this release.
  19. `host`::
  20. The node's host name.
  21. `http_address`::
  22. Host and port where primary HTTP connections are accepted.
  23. `ip`::
  24. The node's IP address.
  25. `name`::
  26. The node's name.
  27. `total_indexing_buffer`::
  28. Total heap allowed to be used to hold recently indexed
  29. documents before they must be written to disk. This size is
  30. a shared pool across all shards on this node, and is
  31. controlled by <<indexing-buffer,Indexing Buffer settings>>.
  32. `total_indexing_buffer_in_bytes`::
  33. Same as `total_indexing_buffer`, but expressed in bytes.
  34. `transport_address`::
  35. Host and port where transport HTTP connections are accepted.
  36. `version`::
  37. Elasticsearch version running on this node.
  38. It also allows to get only information on `settings`, `os`, `process`, `jvm`,
  39. `thread_pool`, `transport`, `http`, `plugins` and `ingest`:
  40. [source,js]
  41. --------------------------------------------------
  42. curl -XGET 'http://localhost:9200/_nodes/process'
  43. curl -XGET 'http://localhost:9200/_nodes/_all/process'
  44. curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2/jvm,process'
  45. # same as above
  46. curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2/info/jvm,process'
  47. curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2/_all
  48. --------------------------------------------------
  49. The `_all` flag can be set to return all the information - or you can simply omit it.
  50. [float]
  51. [[os-info]]
  52. ==== Operating System information
  53. The `os` flag can be set to retrieve information that concern
  54. the operating system:
  55. `os.refresh_interval_in_millis`::
  56. Refresh interval for the OS statistics
  57. `os.name`::
  58. Name of the operating system (ex: Linux, Windows, Mac OS X)
  59. `os.arch`::
  60. Name of the JVM architecture (ex: amd64, x86)
  61. `os.version`::
  62. Version of the operating system
  63. `os.available_processors`::
  64. Number of processors available to the Java virtual machine
  65. `os.allocated_processors`::
  66. The number of processors actually used to calculate thread pool size. This number can be set
  67. with the `processors` setting of a node and defaults to the number of processors reported by the OS.
  68. In both cases this number will never be larger than 32.
  69. [float]
  70. [[process-info]]
  71. ==== Process information
  72. The `process` flag can be set to retrieve information that concern
  73. the current running process:
  74. `process.refresh_interval_in_millis`::
  75. Refresh interval for the process statistics
  76. `process.id`::
  77. Process identifier (PID)
  78. `process.mlockall`::
  79. Indicates if the process address space has been successfully locked in memory
  80. [float]
  81. [[plugins-info]]
  82. ==== Plugins information
  83. `plugins` - if set, the result will contain details about the loaded
  84. plugins per node:
  85. * `name`: plugin name
  86. * `description`: plugin description if any
  87. * `site`: `true` if the plugin is a site plugin
  88. * `jvm`: `true` if the plugin is a plugin running in the JVM
  89. * `url`: URL if the plugin is a site plugin
  90. The result will look similar to:
  91. [source,js]
  92. --------------------------------------------------
  93. {
  94. "cluster_name" : "test-cluster-MacBook-Air-de-David.local",
  95. "nodes" : {
  96. "hJLXmY_NTrCytiIMbX4_1g" : {
  97. "name" : "node4",
  98. "transport_address" : "inet[/172.18.58.139:9303]",
  99. "hostname" : "MacBook-Air-de-David.local",
  100. "version" : "0.90.0.Beta2-SNAPSHOT",
  101. "http_address" : "inet[/172.18.58.139:9203]",
  102. "plugins" : [ {
  103. "name" : "test-plugin",
  104. "description" : "test-plugin description",
  105. "site" : true,
  106. "jvm" : false
  107. }, {
  108. "name" : "test-no-version-plugin",
  109. "description" : "test-no-version-plugin description",
  110. "site" : true,
  111. "jvm" : false
  112. }, {
  113. "name" : "dummy",
  114. "description" : "No description found for dummy.",
  115. "url" : "/_plugin/dummy/",
  116. "site" : false,
  117. "jvm" : true
  118. } ]
  119. }
  120. }
  121. }
  122. --------------------------------------------------
  123. [float]
  124. [[ingest-info]]
  125. ==== Ingest information
  126. `ingest` - if set, the result will contain details about the available
  127. processors per node:
  128. * `type`: the processor type
  129. The result will look similar to:
  130. [source,js]
  131. --------------------------------------------------
  132. {
  133. "cluster_name": "elasticsearch",
  134. "nodes": {
  135. "O70_wBv6S9aPPcAKdSUBtw": {
  136. "ingest": {
  137. "processors": [
  138. {
  139. "type": "date"
  140. },
  141. {
  142. "type": "uppercase"
  143. },
  144. {
  145. "type": "set"
  146. },
  147. {
  148. "type": "lowercase"
  149. },
  150. {
  151. "type": "gsub"
  152. },
  153. {
  154. "type": "convert"
  155. },
  156. {
  157. "type": "remove"
  158. },
  159. {
  160. "type": "fail"
  161. },
  162. {
  163. "type": "foreach"
  164. },
  165. {
  166. "type": "split"
  167. },
  168. {
  169. "type": "trim"
  170. },
  171. {
  172. "type": "rename"
  173. },
  174. {
  175. "type": "join"
  176. },
  177. {
  178. "type": "append"
  179. }
  180. ]
  181. }
  182. }
  183. }
  184. }
  185. --------------------------------------------------