nodes-info.asciidoc 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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. `ip`::
  22. The node's IP address.
  23. `name`::
  24. The node's name.
  25. `total_indexing_buffer`::
  26. Total heap allowed to be used to hold recently indexed
  27. documents before they must be written to disk. This size is
  28. a shared pool across all shards on this node, and is
  29. controlled by <<indexing-buffer,Indexing Buffer settings>>.
  30. `total_indexing_buffer_in_bytes`::
  31. Same as `total_indexing_buffer`, but expressed in bytes.
  32. `transport_address`::
  33. Host and port where transport HTTP connections are accepted.
  34. `version`::
  35. Elasticsearch version running on this node.
  36. It also allows to get only information on `settings`, `os`, `process`, `jvm`,
  37. `thread_pool`, `transport`, `http`, `plugins`, `ingest` and `indices`:
  38. [source,js]
  39. --------------------------------------------------
  40. curl -XGET 'http://localhost:9200/_nodes/process'
  41. curl -XGET 'http://localhost:9200/_nodes/_all/process'
  42. curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2/jvm,process'
  43. # same as above
  44. curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2/info/jvm,process'
  45. curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2/_all
  46. --------------------------------------------------
  47. The `_all` flag can be set to return all the information - or you can simply omit it.
  48. [float]
  49. [[os-info]]
  50. ==== Operating System information
  51. The `os` flag can be set to retrieve information that concern
  52. the operating system:
  53. `os.refresh_interval_in_millis`::
  54. Refresh interval for the OS statistics
  55. `os.name`::
  56. Name of the operating system (ex: Linux, Windows, Mac OS X)
  57. `os.arch`::
  58. Name of the JVM architecture (ex: amd64, x86)
  59. `os.version`::
  60. Version of the operating system
  61. `os.available_processors`::
  62. Number of processors available to the Java virtual machine
  63. `os.allocated_processors`::
  64. The number of processors actually used to calculate thread pool size. This number can be set
  65. with the `processors` setting of a node and defaults to the number of processors reported by the OS.
  66. In both cases this number will never be larger than 32.
  67. [float]
  68. [[process-info]]
  69. ==== Process information
  70. The `process` flag can be set to retrieve information that concern
  71. the current running process:
  72. `process.refresh_interval_in_millis`::
  73. Refresh interval for the process statistics
  74. `process.id`::
  75. Process identifier (PID)
  76. `process.mlockall`::
  77. Indicates if the process address space has been successfully locked in memory
  78. [float]
  79. [[plugins-info]]
  80. ==== Plugins information
  81. `plugins` - if set, the result will contain details about the installed plugins
  82. per node:
  83. * `name`: plugin name
  84. * `version`: version of Elasticsearch the plugin was built for
  85. * `description`: short description of the plugin's purpose
  86. * `classname`: fully-qualified class name of the plugin's entry point
  87. * `has_native_controller`: whether or not the plugin has a native controller process
  88. The result will look similar to:
  89. [source,js]
  90. --------------------------------------------------
  91. {
  92. "cluster_name": "elasticsearch",
  93. "nodes": {
  94. "O70_wBv6S9aPPcAKdSUBtw": {
  95. "plugins": [
  96. {
  97. "name": "analysis-icu",
  98. "version": "{version}",
  99. "description": "The ICU Analysis plugin integrates Lucene ICU module into elasticsearch, adding ICU relates analysis components.",
  100. "classname": "org.elasticsearch.plugin.analysis.icu.AnalysisICUPlugin",
  101. "has_native_controller": false
  102. },
  103. {
  104. "name": "ingest-geoip",
  105. "version": "{version}",
  106. "description": "Ingest processor that uses looksup geo data based on ip adresses using the Maxmind geo database",
  107. "classname": "org.elasticsearch.ingest.geoip.IngestGeoIpPlugin",
  108. "has_native_controller": false
  109. },
  110. {
  111. "name": "ingest-user-agent",
  112. "version": "{version}",
  113. "description": "Ingest processor that extracts information from a user agent",
  114. "classname": "org.elasticsearch.ingest.useragent.IngestUserAgentPlugin",
  115. "has_native_controller": false
  116. }
  117. ]
  118. }
  119. }
  120. }
  121. --------------------------------------------------
  122. [float]
  123. [[ingest-info]]
  124. ==== Ingest information
  125. `ingest` - if set, the result will contain details about the available
  126. processors per node:
  127. * `type`: the processor type
  128. The result will look similar to:
  129. [source,js]
  130. --------------------------------------------------
  131. {
  132. "cluster_name": "elasticsearch",
  133. "nodes": {
  134. "O70_wBv6S9aPPcAKdSUBtw": {
  135. "ingest": {
  136. "processors": [
  137. {
  138. "type": "date"
  139. },
  140. {
  141. "type": "uppercase"
  142. },
  143. {
  144. "type": "set"
  145. },
  146. {
  147. "type": "lowercase"
  148. },
  149. {
  150. "type": "gsub"
  151. },
  152. {
  153. "type": "convert"
  154. },
  155. {
  156. "type": "remove"
  157. },
  158. {
  159. "type": "fail"
  160. },
  161. {
  162. "type": "foreach"
  163. },
  164. {
  165. "type": "split"
  166. },
  167. {
  168. "type": "trim"
  169. },
  170. {
  171. "type": "rename"
  172. },
  173. {
  174. "type": "join"
  175. },
  176. {
  177. "type": "append"
  178. }
  179. ]
  180. }
  181. }
  182. }
  183. }
  184. --------------------------------------------------