discovery.asciidoc 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. [[modules-discovery]]
  2. == Discovery and cluster formation
  3. The discovery and cluster formation processes are responsible for discovering
  4. nodes, electing a master, forming a cluster, and publishing the cluster state
  5. each time it changes.
  6. The following processes and settings are part of discovery and cluster
  7. formation:
  8. <<discovery-hosts-providers>>::
  9. Discovery is the process where nodes find each other when the master is
  10. unknown, such as when a node has just started up or when the previous
  11. master has failed.
  12. <<modules-discovery-quorums>>::
  13. How {es} uses a quorum-based voting mechanism to
  14. make decisions even if some nodes are unavailable.
  15. <<modules-discovery-voting>>::
  16. How {es} automatically updates voting configurations as nodes leave and join
  17. a cluster.
  18. <<modules-discovery-bootstrap-cluster>>::
  19. Bootstrapping a cluster is required when an {es} cluster starts up
  20. for the very first time. In <<dev-vs-prod-mode,development mode>>, with no
  21. discovery settings configured, this is automatically performed by the nodes
  22. themselves. As this auto-bootstrapping is
  23. <<modules-discovery-quorums,inherently unsafe>>, running a node in
  24. <<dev-vs-prod-mode,production mode>> requires bootstrapping to be
  25. <<modules-discovery-bootstrap-cluster,explicitly configured>>.
  26. <<add-elasticsearch-nodes,Adding and removing master-eligible nodes>>::
  27. It is recommended to have a small and fixed number of master-eligible nodes
  28. in a cluster, and to scale the cluster up and down by adding and removing
  29. master-ineligible nodes only. However there are situations in which it may
  30. be desirable to add or remove some master-eligible nodes to or from a
  31. cluster. This section describes the process for adding or removing
  32. master-eligible nodes, including the extra steps that need to be performed
  33. when removing more than half of the master-eligible nodes at the same time.
  34. <<cluster-state-publishing>>::
  35. Cluster state publishing is the process by which the elected master node
  36. updates the cluster state on all the other nodes in the cluster.
  37. <<cluster-fault-detection>>::
  38. {es} performs health checks to detect and remove faulty nodes.
  39. <<modules-discovery-settings,Settings>>::
  40. There are settings that enable users to influence the discovery, cluster
  41. formation, master election and fault detection processes.
  42. include::discovery/discovery.asciidoc[]
  43. include::discovery/quorums.asciidoc[]
  44. include::discovery/voting.asciidoc[]
  45. include::discovery/bootstrapping.asciidoc[]
  46. include::discovery/publishing.asciidoc[]
  47. include::discovery/fault-detection.asciidoc[]