cluster.asciidoc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [[cluster]]
  2. = Cluster APIs
  3. [partintro]
  4. --
  5. ["float",id="cluster-nodes"]
  6. == Node specification
  7. Most cluster level APIs allow to specify which nodes to execute on (for
  8. example, getting the node stats for a node). Nodes can be identified in
  9. the APIs either using their internal node id, the node name, address,
  10. custom attributes, or just the `_local` node receiving the request. For
  11. example, here are some sample executions of nodes info:
  12. [source,js]
  13. --------------------------------------------------
  14. # Local
  15. curl localhost:9200/_nodes/_local
  16. # Address
  17. curl localhost:9200/_nodes/10.0.0.3,10.0.0.4
  18. curl localhost:9200/_nodes/10.0.0.*
  19. # Names
  20. curl localhost:9200/_nodes/node_name_goes_here
  21. curl localhost:9200/_nodes/node_name_goes_*
  22. # Attributes (set something like node.rack: 2 in the config)
  23. curl localhost:9200/_nodes/rack:2
  24. curl localhost:9200/_nodes/ra*:2
  25. curl localhost:9200/_nodes/ra*:2*
  26. --------------------------------------------------
  27. --
  28. include::cluster/health.asciidoc[]
  29. include::cluster/state.asciidoc[]
  30. include::cluster/stats.asciidoc[]
  31. include::cluster/pending.asciidoc[]
  32. include::cluster/reroute.asciidoc[]
  33. include::cluster/update-settings.asciidoc[]
  34. include::cluster/nodes-stats.asciidoc[]
  35. include::cluster/nodes-info.asciidoc[]
  36. include::cluster/tasks.asciidoc[]
  37. include::cluster/nodes-hot-threads.asciidoc[]
  38. include::cluster/allocation-explain.asciidoc[]