nodes-info.asciidoc 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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`, `ingest` and `indices`:
  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 installed plugins
  84. per node:
  85. * `name`: plugin name
  86. * `version`: version of Elasticsearch the plugin was built for
  87. * `description`: short description of the plugin's purpose
  88. * `classname`: fully-qualified class name of the plugin's entry point
  89. * `has_native_controller`: whether or not the plugin has a native controller process
  90. The result will look similar to:
  91. [source,js]
  92. --------------------------------------------------
  93. {
  94. "cluster_name": "elasticsearch",
  95. "nodes": {
  96. "O70_wBv6S9aPPcAKdSUBtw": {
  97. "plugins": [
  98. {
  99. "name": "analysis-icu",
  100. "version": "{version}",
  101. "description": "The ICU Analysis plugin integrates Lucene ICU module into elasticsearch, adding ICU relates analysis components.",
  102. "classname": "org.elasticsearch.plugin.analysis.icu.AnalysisICUPlugin",
  103. "has_native_controller": false
  104. },
  105. {
  106. "name": "ingest-geoip",
  107. "version": "{version}",
  108. "description": "Ingest processor that uses looksup geo data based on ip adresses using the Maxmind geo database",
  109. "classname": "org.elasticsearch.ingest.geoip.IngestGeoIpPlugin",
  110. "has_native_controller": false
  111. },
  112. {
  113. "name": "ingest-user-agent",
  114. "version": "{version}",
  115. "description": "Ingest processor that extracts information from a user agent",
  116. "classname": "org.elasticsearch.ingest.useragent.IngestUserAgentPlugin",
  117. "has_native_controller": false
  118. }
  119. ]
  120. }
  121. }
  122. }
  123. --------------------------------------------------
  124. [float]
  125. [[ingest-info]]
  126. ==== Ingest information
  127. `ingest` - if set, the result will contain details about the available
  128. processors per node:
  129. * `type`: the processor type
  130. The result will look similar to:
  131. [source,js]
  132. --------------------------------------------------
  133. {
  134. "cluster_name": "elasticsearch",
  135. "nodes": {
  136. "O70_wBv6S9aPPcAKdSUBtw": {
  137. "ingest": {
  138. "processors": [
  139. {
  140. "type": "date"
  141. },
  142. {
  143. "type": "uppercase"
  144. },
  145. {
  146. "type": "set"
  147. },
  148. {
  149. "type": "lowercase"
  150. },
  151. {
  152. "type": "gsub"
  153. },
  154. {
  155. "type": "convert"
  156. },
  157. {
  158. "type": "remove"
  159. },
  160. {
  161. "type": "fail"
  162. },
  163. {
  164. "type": "foreach"
  165. },
  166. {
  167. "type": "split"
  168. },
  169. {
  170. "type": "trim"
  171. },
  172. {
  173. "type": "rename"
  174. },
  175. {
  176. "type": "join"
  177. },
  178. {
  179. "type": "append"
  180. }
  181. ]
  182. }
  183. }
  184. }
  185. }
  186. --------------------------------------------------