nodes.asciidoc 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. [[cat-nodes]]
  2. == cat nodes
  3. The `nodes` command shows the cluster topology. For example
  4. [source,js]
  5. --------------------------------------------------
  6. GET /_cat/nodes?v
  7. --------------------------------------------------
  8. // CONSOLE
  9. Might look like:
  10. [source,txt]
  11. --------------------------------------------------
  12. ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
  13. 127.0.0.1 65 99 42 3.07 mdi * mJw06l1
  14. --------------------------------------------------
  15. // TESTRESPONSE[s/3.07/(\\d+\\.\\d+( \\d+\\.\\d+ (\\d+\\.\\d+)?)?)?/]
  16. // TESTRESPONSE[s/65 99 42/\\d+ \\d+ \\d+/]
  17. // TESTRESPONSE[s/[*]/[*]/ s/mJw06l1/.+/ _cat]
  18. The first few columns (`ip`, `heap.percent`, `ram.percent`, `cpu`, `load_*`) tell
  19. you where your nodes live and give a quick picture of performance stats.
  20. The last (`node.role`, `master`, and `name`) columns provide ancillary
  21. information that can often be useful when looking at the cluster as a whole,
  22. particularly large ones. How many master-eligible nodes do I have?
  23. [float]
  24. === Columns
  25. Below is an exhaustive list of the existing headers that can be
  26. passed to `nodes?h=` to retrieve the relevant details in ordered
  27. columns. If no headers are specified, then those marked to Appear
  28. by Default will appear. If any header is specified, then the defaults
  29. are not used.
  30. Aliases can be used in place of the full header name for brevity.
  31. Columns appear in the order that they are listed below unless a
  32. different order is specified (e.g., `h=pid,id` versus `h=id,pid`).
  33. When specifying headers, the headers are not placed in the output
  34. by default. To have the headers appear in the output, use verbose
  35. mode (`v`). The header name will match the supplied value (e.g.,
  36. `pid` versus `p`). For example:
  37. [source,js]
  38. --------------------------------------------------
  39. GET /_cat/nodes?v&h=id,ip,port,v,m
  40. --------------------------------------------------
  41. // CONSOLE
  42. Might look like:
  43. ["source","txt",subs="attributes,callouts"]
  44. --------------------------------------------------
  45. id ip port v m
  46. veJR 127.0.0.1 59938 {version} *
  47. --------------------------------------------------
  48. // TESTRESPONSE[s/veJR/.+/ s/59938/\\d+/ s/[*]/[*]/ _cat]
  49. [cols="<,<,<,<,<",options="header",subs="normal"]
  50. |=======================================================================
  51. |Header |Alias |Appear by Default |Description |Example
  52. |`id` |`nodeId` |No |Unique node ID |k0zy
  53. |`pid` |`p` |No |Process ID |13061
  54. |`ip` |`i` |Yes |IP address |127.0.1.1
  55. |`port` |`po` |No |Bound transport port |9300
  56. |`http_address` |`http`| No |Bound http address | 127.0.0.1:9200
  57. |`version` |`v` |No |Elasticsearch version |{version}
  58. |`build` |`b` |No |Elasticsearch Build hash |5c03844
  59. |`jdk` |`j` |No |Running Java version |1.8.0
  60. |`disk.total` |`dt`, `diskTotal` |No |Total disk space| 458.3gb
  61. |`disk.used` |`du`, `diskUsed` |No |Used disk space| 259.8gb
  62. |`disk.avail` |`d`, `disk`, `diskAvail` |No |Available disk space |198.4gb
  63. |`disk.used_percent` |`dup`, `diskUsedPercent` |No |Used disk space percentage |56.71
  64. |`heap.current` |`hc`, `heapCurrent` |No |Used heap |311.2mb
  65. |`heap.percent` |`hp`, `heapPercent` |Yes |Used heap percentage |7
  66. |`heap.max` |`hm`, `heapMax` |No |Maximum configured heap |1015.6mb
  67. |`ram.current` |`rc`, `ramCurrent` |No |Used total memory |513.4mb
  68. |`ram.percent` |`rp`, `ramPercent` |Yes |Used total memory percentage |47
  69. |`ram.max` |`rm`, `ramMax` |No |Total memory |2.9gb
  70. |`file_desc.current` |`fdc`, `fileDescriptorCurrent` |No |Used file
  71. descriptors |123
  72. |`file_desc.percent` |`fdp`, `fileDescriptorPercent` |Yes |Used file
  73. descriptors percentage |1
  74. |`file_desc.max` |`fdm`, `fileDescriptorMax` |No |Maximum number of file
  75. descriptors |1024
  76. |`cpu` | |No |Recent system CPU usage as percent |12
  77. |`load_1m` |`l` |No |Most recent load average |0.22
  78. |`load_5m` |`l` |No |Load average for the last five minutes |0.78
  79. |`load_15m` |`l` |No |Load average for the last fifteen minutes |1.24
  80. |`uptime` |`u` |No |Node uptime |17.3m
  81. |`node.role` |`r`, `role`, `nodeRole` |Yes |Master eligible node (m);
  82. Data node (d); Ingest node (i); Coordinating node only (-) |mdi
  83. |`master` |`m` |Yes |Elected master (*); Not elected master (-) |*
  84. |`name` |`n` |Yes |Node name |I8hydUG
  85. |`completion.size` |`cs`, `completionSize` |No |Size of completion |0b
  86. |`fielddata.memory_size` |`fm`, `fielddataMemory` |No |Used fielddata
  87. cache memory |0b
  88. |`fielddata.evictions` |`fe`, `fielddataEvictions` |No |Fielddata cache
  89. evictions |0
  90. |`query_cache.memory_size` |`qcm`, `queryCacheMemory` |No |Used query
  91. cache memory |0b
  92. |`query_cache.evictions` |`qce`, `queryCacheEvictions` |No |Query
  93. cache evictions |0
  94. |`request_cache.memory_size` |`rcm`, `requestCacheMemory` |No | Used request
  95. cache memory |0b
  96. |`request_cache.evictions` |`rce`, `requestCacheEvictions` |No |Request
  97. cache evictions |0
  98. |`request_cache.hit_count` |`rchc`, `requestCacheHitCount` |No | Request
  99. cache hit count |0
  100. |`request_cache.miss_count` |`rcmc`, `requestCacheMissCount` |No | Request
  101. cache miss count |0
  102. |`flush.total` |`ft`, `flushTotal` |No |Number of flushes |1
  103. |`flush.total_time` |`ftt`, `flushTotalTime` |No |Time spent in flush |1
  104. |`get.current` |`gc`, `getCurrent` |No |Number of current get
  105. operations |0
  106. |`get.time` |`gti`, `getTime` |No |Time spent in get |14ms
  107. |`get.total` |`gto`, `getTotal` |No |Number of get operations |2
  108. |`get.exists_time` |`geti`, `getExistsTime` |No |Time spent in
  109. successful gets |14ms
  110. |`get.exists_total` |`geto`, `getExistsTotal` |No |Number of successful
  111. get operations |2
  112. |`get.missing_time` |`gmti`, `getMissingTime` |No |Time spent in failed
  113. gets |0s
  114. |`get.missing_total` |`gmto`, `getMissingTotal` |No |Number of failed
  115. get operations |1
  116. |`indexing.delete_current` |`idc`, `indexingDeleteCurrent` |No |Number
  117. of current deletion operations |0
  118. |`indexing.delete_time` |`idti`, `indexingDeleteTime` |No |Time spent in
  119. deletions |2ms
  120. |`indexing.delete_total` |`idto`, `indexingDeleteTotal` |No |Number of
  121. deletion operations |2
  122. |`indexing.index_current` |`iic`, `indexingIndexCurrent` |No |Number
  123. of current indexing operations |0
  124. |`indexing.index_time` |`iiti`, `indexingIndexTime` |No |Time spent in
  125. indexing |134ms
  126. |`indexing.index_total` |`iito`, `indexingIndexTotal` |No |Number of
  127. indexing operations |1
  128. |`indexing.index_failed` |`iif`, `indexingIndexFailed` |No |Number of
  129. failed indexing operations |0
  130. |`merges.current` |`mc`, `mergesCurrent` |No |Number of current
  131. merge operations |0
  132. |`merges.current_docs` |`mcd`, `mergesCurrentDocs` |No |Number of
  133. current merging documents |0
  134. |`merges.current_size` |`mcs`, `mergesCurrentSize` |No |Size of current
  135. merges |0b
  136. |`merges.total` |`mt`, `mergesTotal` |No |Number of completed merge
  137. operations |0
  138. |`merges.total_docs` |`mtd`, `mergesTotalDocs` |No |Number of merged
  139. documents |0
  140. |`merges.total_size` |`mts`, `mergesTotalSize` |No |Size of current
  141. merges |0b
  142. |`merges.total_time` |`mtt`, `mergesTotalTime` |No |Time spent merging
  143. documents |0s
  144. |`refresh.total` |`rto`, `refreshTotal` |No |Number of refreshes |16
  145. |`refresh.time` |`rti`, `refreshTime` |No |Time spent in refreshes |91ms
  146. |`script.compilations` |`scrcc`, `scriptCompilations` |No |Total script compilations |17
  147. |`script.cache_evictions` |`scrce`, `scriptCacheEvictions` |No |Total compiled scripts evicted from cache |6
  148. |`search.fetch_current` |`sfc`, `searchFetchCurrent` |No |Current fetch
  149. phase operations |0
  150. |`search.fetch_time` |`sfti`, `searchFetchTime` |No |Time spent in fetch
  151. phase |37ms
  152. |`search.fetch_total` |`sfto`, `searchFetchTotal` |No |Number of fetch
  153. operations |7
  154. |`search.open_contexts` |`so`, `searchOpenContexts` |No |Open search
  155. contexts |0
  156. |`search.query_current` |`sqc`, `searchQueryCurrent` |No |Current query
  157. phase operations |0
  158. |`search.query_time` |`sqti`, `searchQueryTime` |No |Time spent in query
  159. phase |43ms
  160. |`search.query_total` |`sqto`, `searchQueryTotal` |No |Number of query
  161. operations |9
  162. |`search.scroll_current` |`scc`, `searchScrollCurrent` |No |Open scroll contexts |2
  163. |`search.scroll_time` |`scti`, `searchScrollTime` |No |Time scroll contexts held open|2m
  164. |`search.scroll_total` |`scto`, `searchScrollTotal` |No |Completed scroll contexts |1
  165. |`segments.count` |`sc`, `segmentsCount` |No |Number of segments |4
  166. |`segments.memory` |`sm`, `segmentsMemory` |No |Memory used by
  167. segments |1.4kb
  168. |`segments.index_writer_memory` |`siwm`, `segmentsIndexWriterMemory` |No
  169. |Memory used by index writer |18mb
  170. |`segments.version_map_memory` |`svmm`, `segmentsVersionMapMemory` |No
  171. |Memory used by version map |1.0kb
  172. |`segments.fixed_bitset_memory` |`sfbm`, `fixedBitsetMemory` |No
  173. |Memory used by fixed bit sets for nested object field types and type filters for types referred in `join` fields |1.0kb
  174. |`suggest.current` |`suc`, `suggestCurrent` |No |Number of current suggest operations |0
  175. |`suggest.time` |`suti`, `suggestTime` |No |Time spent in suggest |0
  176. |`suggest.total` |`suto`, `suggestTotal` |No |Number of suggest operations |0
  177. |=======================================================================