nodes-info.asciidoc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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` and `plugins`:
  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. [float]
  43. [[process-info]]
  44. ==== Process information
  45. The `process` flag can be set to retrieve information that concern
  46. the current running process:
  47. `process.refresh_interval_in_millis`::
  48. Refresh interval for the process statistics
  49. `process.id`::
  50. Process identifier (PID)
  51. `process.mlockall`::
  52. Indicates if the process address space has been successfully locked in memory
  53. [float]
  54. [[plugins-info]]
  55. ==== Plugins information
  56. `plugins` - if set, the result will contain details about the loaded
  57. plugins per node:
  58. * `name`: plugin name
  59. * `description`: plugin description if any
  60. * `site`: `true` if the plugin is a site plugin
  61. * `jvm`: `true` if the plugin is a plugin running in the JVM
  62. * `url`: URL if the plugin is a site plugin
  63. The result will look similar to:
  64. [source,js]
  65. --------------------------------------------------
  66. {
  67. "cluster_name" : "test-cluster-MacBook-Air-de-David.local",
  68. "nodes" : {
  69. "hJLXmY_NTrCytiIMbX4_1g" : {
  70. "name" : "node4",
  71. "transport_address" : "inet[/172.18.58.139:9303]",
  72. "hostname" : "MacBook-Air-de-David.local",
  73. "version" : "0.90.0.Beta2-SNAPSHOT",
  74. "http_address" : "inet[/172.18.58.139:9203]",
  75. "plugins" : [ {
  76. "name" : "test-plugin",
  77. "description" : "test-plugin description",
  78. "site" : true,
  79. "jvm" : false
  80. }, {
  81. "name" : "test-no-version-plugin",
  82. "description" : "test-no-version-plugin description",
  83. "site" : true,
  84. "jvm" : false
  85. }, {
  86. "name" : "dummy",
  87. "description" : "No description found for dummy.",
  88. "url" : "/_plugin/dummy/",
  89. "site" : false,
  90. "jvm" : true
  91. } ]
  92. }
  93. }
  94. }
  95. --------------------------------------------------