nodes.asciidoc 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. [[cat-nodes]]
  2. == cat nodes
  3. The `nodes` command shows the cluster topology.
  4. ["source","sh",subs="attributes,callouts"]
  5. --------------------------------------------------
  6. % curl 192.168.56.10:9200/_cat/nodes
  7. SP4H 4727 192.168.56.30 9300 {version} {jdk} 72.1gb 35.4 93.9mb 79 239.1mb 0.45 3.4h mdi - Boneyard
  8. _uhJ 5134 192.168.56.10 9300 {version} {jdk} 72.1gb 33.3 93.9mb 85 239.1mb 0.06 3.4h mdi * Athena
  9. HfDp 4562 192.168.56.20 9300 {version} {jdk} 72.2gb 74.5 93.9mb 83 239.1mb 0.12 3.4h mdi - Zarek
  10. --------------------------------------------------
  11. The first few columns tell you where your nodes live. For sanity it
  12. also tells you what version of ES and the JVM each one runs.
  13. ["source","sh",subs="attributes,callouts"]
  14. --------------------------------------------------
  15. nodeId pid ip port version jdk
  16. u2PZ 4234 192.168.56.30 9300 {version} {jdk}
  17. URzf 5443 192.168.56.10 9300 {version} {jdk}
  18. ActN 3806 192.168.56.20 9300 {version} {jdk}
  19. --------------------------------------------------
  20. The next few give a picture of your heap, memory, and load.
  21. [source,sh]
  22. --------------------------------------------------
  23. diskAvail heapPercent heapMax ramPercent ramMax load
  24. 72.1gb 31.3 93.9mb 81 239.1mb 0.24
  25. 72.1gb 19.6 93.9mb 82 239.1mb 0.05
  26. 72.2gb 64.9 93.9mb 84 239.1mb 0.12
  27. --------------------------------------------------
  28. The last columns provide ancillary information that can often be
  29. useful when looking at the cluster as a whole, particularly large
  30. ones. How many master-eligible nodes do I have? How many client
  31. nodes? It looks like someone restarted a node recently; which one was
  32. it?
  33. [source,sh]
  34. --------------------------------------------------
  35. uptime node.role master name
  36. 3.5h di - Boneyard
  37. 3.5h md * Athena
  38. 3.5h i - Zarek
  39. --------------------------------------------------
  40. [float]
  41. === Columns
  42. Below is an exhaustive list of the existing headers that can be
  43. passed to `nodes?h=` to retrieve the relevant details in ordered
  44. columns. If no headers are specified, then those marked to Appear
  45. by Default will appear. If any header is specified, then the defaults
  46. are not used.
  47. Aliases can be used in place of the full header name for brevity.
  48. Columns appear in the order that they are listed below unless a
  49. different order is specified (e.g., `h=pid,id` versus `h=id,pid`).
  50. When specifying headers, the headers are not placed in the output
  51. by default. To have the headers appear in the output, use verbose
  52. mode (`v`). The header name will match the supplied value (e.g.,
  53. `pid` versus `p`). For example:
  54. ["source","sh",subs="attributes,callouts"]
  55. --------------------------------------------------
  56. % curl 192.168.56.10:9200/_cat/nodes?v&h=id,ip,port,v,m
  57. id ip port v m
  58. pLSN 192.168.56.30 9300 {version} -
  59. k0zy 192.168.56.10 9300 {version} -
  60. 6Tyi 192.168.56.20 9300 {version} *
  61. % curl 192.168.56.10:9200/_cat/nodes?h=id,ip,port,v,m
  62. pLSN 192.168.56.30 9300 {version} -
  63. k0zy 192.168.56.10 9300 {version} -
  64. 6Tyi 192.168.56.20 9300 {version} *
  65. --------------------------------------------------
  66. [cols="<,<,<,<,<",options="header",subs="normal"]
  67. |=======================================================================
  68. |Header |Alias |Appear by Default |Description |Example
  69. |`id` |`nodeId` |No |Unique node ID |k0zy
  70. |`pid` |`p` |No |Process ID |13061
  71. |`ip` |`i` |Yes |IP address |127.0.1.1
  72. |`port` |`po` |No |Bound transport port |9300
  73. |`http_address` |`http`| No | bound http address | 127.0.0.1:9200
  74. |`version` |`v` |No |Elasticsearch version |{version}
  75. |`build` |`b` |No |Elasticsearch Build hash |5c03844
  76. |`jdk` |`j` |No |Running Java version |1.8.0
  77. |`disk.avail` |`d`, `disk`, `diskAvail` |No |Available disk space |1.8gb
  78. |`heap.current` |`hc`, `heapCurrent` |No |Used heap |311.2mb
  79. |`heap.percent` |`hp`, `heapPercent` |Yes |Used heap percentage |7
  80. |`heap.max` |`hm`, `heapMax` |No |Maximum configured heap |1015.6mb
  81. |`ram.current` |`rc`, `ramCurrent` |No |Used total memory |513.4mb
  82. |`ram.percent` |`rp`, `ramPercent` |Yes |Used total memory percentage |47
  83. |`ram.max` |`rm`, `ramMax` |No |Total memory |2.9gb
  84. |`file_desc.current` |`fdc`, `fileDescriptorCurrent` |No |Used file
  85. descriptors |123
  86. |`file_desc.percent` |`fdp`, `fileDescriptorPercent` |Yes |Used file
  87. descriptors percentage |1
  88. |`file_desc.max` |`fdm`, `fileDescriptorMax` |No |Maximum number of file
  89. descriptors |1024
  90. |`load` |`l` |No |Most recent load average |0.22
  91. |`cpu` | |No |Recent system CPU usage as percent |12
  92. |`uptime` |`u` |No |Node uptime |17.3m
  93. |`node.role` |`r`, `role`, `nodeRole` |Yes |Master eligible node (m);
  94. Data node (d); Ingest node (i); Coordinating node only (-) |mdi
  95. |`master` |`m` |Yes |Elected master (*); Not elected master (-) |*
  96. |`name` |`n` |Yes |Node name |Venom
  97. |`completion.size` |`cs`, `completionSize` |No |Size of completion |0b
  98. |`fielddata.memory_size` |`fm`, `fielddataMemory` |No |Used fielddata
  99. cache memory |0b
  100. |`fielddata.evictions` |`fe`, `fielddataEvictions` |No |Fielddata cache
  101. evictions |0
  102. |`query_cache.memory_size` |`qcm`, `queryCacheMemory` |No |Used query
  103. cache memory |0b
  104. |`query_cache.evictions` |`qce`, `queryCacheEvictions` |No |Query
  105. cache evictions |0
  106. |`request_cache.memory_size` |`rcm`, `requestCacheMemory` |No | Used request
  107. cache memory |0b
  108. |`request_cache.evictions` |`rce`, `requestCacheEvictions` |No |Request
  109. cache evictions |0
  110. |`request_cache.hit_count` |`rchc`, `requestCacheHitCount` |No | Request
  111. cache hit count |0
  112. |`request_cache.miss_count` |`rcmc`, `requestCacheMissCount` |No | Request
  113. cache miss count |0
  114. |`flush.total` |`ft`, `flushTotal` |No |Number of flushes |1
  115. |`flush.total_time` |`ftt`, `flushTotalTime` |No |Time spent in flush |1
  116. |`get.current` |`gc`, `getCurrent` |No |Number of current get
  117. operations |0
  118. |`get.time` |`gti`, `getTime` |No |Time spent in get |14ms
  119. |`get.total` |`gto`, `getTotal` |No |Number of get operations |2
  120. |`get.exists_time` |`geti`, `getExistsTime` |No |Time spent in
  121. successful gets |14ms
  122. |`get.exists_total` |`geto`, `getExistsTotal` |No |Number of successful
  123. get operations |2
  124. |`get.missing_time` |`gmti`, `getMissingTime` |No |Time spent in failed
  125. gets |0s
  126. |`get.missing_total` |`gmto`, `getMissingTotal` |No |Number of failed
  127. get operations |1
  128. |`indexing.delete_current` |`idc`, `indexingDeleteCurrent` |No |Number
  129. of current deletion operations |0
  130. |`indexing.delete_time` |`idti`, `indexingDeleteTime` |No |Time spent in
  131. deletions |2ms
  132. |`indexing.delete_total` |`idto`, `indexingDeleteTotal` |No |Number of
  133. deletion operations |2
  134. |`indexing.index_current` |`iic`, `indexingIndexCurrent` |No |Number
  135. of current indexing operations |0
  136. |`indexing.index_time` |`iiti`, `indexingIndexTime` |No |Time spent in
  137. indexing |134ms
  138. |`indexing.index_total` |`iito`, `indexingIndexTotal` |No |Number of
  139. indexing operations |1
  140. |`merges.current` |`mc`, `mergesCurrent` |No |Number of current
  141. merge operations |0
  142. |`merges.current_docs` |`mcd`, `mergesCurrentDocs` |No |Number of
  143. current merging documents |0
  144. |`merges.current_size` |`mcs`, `mergesCurrentSize` |No |Size of current
  145. merges |0b
  146. |`merges.total` |`mt`, `mergesTotal` |No |Number of completed merge
  147. operations |0
  148. |`merges.total_docs` |`mtd`, `mergesTotalDocs` |No |Number of merged
  149. documents |0
  150. |`merges.total_size` |`mts`, `mergesTotalSize` |No |Size of current
  151. merges |0b
  152. |`merges.total_time` |`mtt`, `mergesTotalTime` |No |Time spent merging
  153. documents |0s
  154. |`percolate.current` |`pc`, `percolateCurrent` |No |Number of current
  155. percolations |0
  156. |`percolate.memory_size` |`pm`, `percolateMemory` |No |Memory used by
  157. current percolations |0b
  158. |`percolate.queries` |`pq`, `percolateQueries` |No |Number of
  159. registered percolation queries |0
  160. |`percolate.time` |`pti`, `percolateTime` |No |Time spent
  161. percolating |0s
  162. |`percolate.total` |`pto`, `percolateTotal` |No |Total percolations |0
  163. |`refresh.total` |`rto`, `refreshTotal` |No |Number of refreshes |16
  164. |`refresh.time` |`rti`, `refreshTime` |No |Time spent in refreshes |91ms
  165. |`script.compilations` |`scrcc`, `scriptCompilations` |No |Total script compilations |17
  166. |`script.cache_evictions` |`scrce`, `scriptCacheEvictions` |No |Total compiled scripts evicted from cache |6
  167. |`search.fetch_current` |`sfc`, `searchFetchCurrent` |No |Current fetch
  168. phase operations |0
  169. |`search.fetch_time` |`sfti`, `searchFetchTime` |No |Time spent in fetch
  170. phase |37ms
  171. |`search.fetch_total` |`sfto`, `searchFetchTotal` |No |Number of fetch
  172. operations |7
  173. |`search.open_contexts` |`so`, `searchOpenContexts` |No |Open search
  174. contexts |0
  175. |`search.query_current` |`sqc`, `searchFetchCurrent` |No |Current query
  176. phase operations |0
  177. |`search.query_time` |`sqti`, `searchFetchTime` |No |Time spent in query
  178. phase |43ms
  179. |`search.query_total` |`sqto`, `searchFetchTotal` |No |Number of query
  180. operations |9
  181. |`search.scroll_current` |`scc`, `searchScrollCurrent` |No |Open scroll contexts |2
  182. |`search.scroll_time` |`scti`, `searchScrollTime` |No |Time scroll contexts held open|2m
  183. |`search.scroll_total` |`scto`, `searchScrollTotal` |No |Completed scroll contexts |1
  184. |`segments.count` |`sc`, `segmentsCount` |No |Number of segments |4
  185. |`segments.memory` |`sm`, `segmentsMemory` |No |Memory used by
  186. segments |1.4kb
  187. |`segments.index_writer_memory` |`siwm`, `segmentsIndexWriterMemory` |No
  188. |Memory used by index writer |18mb
  189. |`segments.index_writer_max_memory` |`siwmx`, `segmentsIndexWriterMaxMemory` |No
  190. |Maximum memory index writer may use before it must write buffered documents to a new segment |32mb
  191. |`segments.version_map_memory` |`svmm`, `segmentsVersionMapMemory` |No
  192. |Memory used by version map |1.0kb
  193. |=======================================================================