nodes-info.asciidoc 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. It also allows to get only information on `settings`, `os`, `process`, `jvm`,
  16. `thread_pool`, `transport`, `http`, `plugins` and `ingest`:
  17. [source,js]
  18. --------------------------------------------------
  19. curl -XGET 'http://localhost:9200/_nodes/process'
  20. curl -XGET 'http://localhost:9200/_nodes/_all/process'
  21. curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2/jvm,process'
  22. # same as above
  23. curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2/info/jvm,process'
  24. curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2/_all
  25. --------------------------------------------------
  26. The `_all` flag can be set to return all the information - or you can simply omit it.
  27. [float]
  28. [[os-info]]
  29. ==== Operating System information
  30. The `os` flag can be set to retrieve information that concern
  31. the operating system:
  32. `os.refresh_interval_in_millis`::
  33. Refresh interval for the OS statistics
  34. `os.name`::
  35. Name of the operating system (ex: Linux, Windows, Mac OS X)
  36. `os.arch`::
  37. Name of the JVM architecture (ex: amd64, x86)
  38. `os.version`::
  39. Version of the operating system
  40. `os.available_processors`::
  41. Number of processors available to the Java virtual machine
  42. `os.allocated_processors`::
  43. The number of processors actually used to calculate thread pool size. This number can be set
  44. with the `processors` setting of a node and defaults to the number of processors reported by the OS.
  45. In both cases this number will never be larger than 32.
  46. [float]
  47. [[process-info]]
  48. ==== Process information
  49. The `process` flag can be set to retrieve information that concern
  50. the current running process:
  51. `process.refresh_interval_in_millis`::
  52. Refresh interval for the process statistics
  53. `process.id`::
  54. Process identifier (PID)
  55. `process.mlockall`::
  56. Indicates if the process address space has been successfully locked in memory
  57. [float]
  58. [[plugins-info]]
  59. ==== Plugins information
  60. `plugins` - if set, the result will contain details about the loaded
  61. plugins per node:
  62. * `name`: plugin name
  63. * `description`: plugin description if any
  64. * `site`: `true` if the plugin is a site plugin
  65. * `jvm`: `true` if the plugin is a plugin running in the JVM
  66. * `url`: URL if the plugin is a site plugin
  67. The result will look similar to:
  68. [source,js]
  69. --------------------------------------------------
  70. {
  71. "cluster_name" : "test-cluster-MacBook-Air-de-David.local",
  72. "nodes" : {
  73. "hJLXmY_NTrCytiIMbX4_1g" : {
  74. "name" : "node4",
  75. "transport_address" : "inet[/172.18.58.139:9303]",
  76. "hostname" : "MacBook-Air-de-David.local",
  77. "version" : "0.90.0.Beta2-SNAPSHOT",
  78. "http_address" : "inet[/172.18.58.139:9203]",
  79. "plugins" : [ {
  80. "name" : "test-plugin",
  81. "description" : "test-plugin description",
  82. "site" : true,
  83. "jvm" : false
  84. }, {
  85. "name" : "test-no-version-plugin",
  86. "description" : "test-no-version-plugin description",
  87. "site" : true,
  88. "jvm" : false
  89. }, {
  90. "name" : "dummy",
  91. "description" : "No description found for dummy.",
  92. "url" : "/_plugin/dummy/",
  93. "site" : false,
  94. "jvm" : true
  95. } ]
  96. }
  97. }
  98. }
  99. --------------------------------------------------
  100. [float]
  101. [[ingest-info]]
  102. ==== Ingest information
  103. `ingest` - if set, the result will contain details about the available
  104. processors per node:
  105. * `type`: the processor type
  106. The result will look similar to:
  107. [source,js]
  108. --------------------------------------------------
  109. {
  110. "cluster_name": "elasticsearch",
  111. "nodes": {
  112. "O70_wBv6S9aPPcAKdSUBtw": {
  113. "ingest": {
  114. "processors": [
  115. {
  116. "type": "date"
  117. },
  118. {
  119. "type": "uppercase"
  120. },
  121. {
  122. "type": "set"
  123. },
  124. {
  125. "type": "lowercase"
  126. },
  127. {
  128. "type": "gsub"
  129. },
  130. {
  131. "type": "convert"
  132. },
  133. {
  134. "type": "remove"
  135. },
  136. {
  137. "type": "fail"
  138. },
  139. {
  140. "type": "foreach"
  141. },
  142. {
  143. "type": "split"
  144. },
  145. {
  146. "type": "trim"
  147. },
  148. {
  149. "type": "rename"
  150. },
  151. {
  152. "type": "join"
  153. },
  154. {
  155. "type": "append"
  156. }
  157. ]
  158. }
  159. }
  160. }
  161. }
  162. --------------------------------------------------