discovery.asciidoc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. [[modules-discovery]]
  2. == Discovery and cluster formation
  3. The discovery and cluster formation module is responsible for discovering
  4. nodes, electing a master, forming a cluster, and publishing the cluster state
  5. each time it changes. It is integrated with other modules. For example, all
  6. communication between nodes is done using the <<modules-transport,transport>>
  7. module. This module is divided into the following sections:
  8. <<modules-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-bootstrap-cluster>>::
  13. Bootstrapping a cluster is required when an Elasticsearch cluster starts up
  14. for the very first time. In <<dev-vs-prod-mode,development mode>>, with no
  15. discovery settings configured, this is automatically performed by the nodes
  16. themselves. As this auto-bootstrapping is
  17. <<modules-discovery-quorums,inherently unsafe>>, running a node in
  18. <<dev-vs-prod-mode,production mode>> requires bootstrapping to be
  19. explicitly configured via the
  20. <<modules-discovery-bootstrap-cluster,`cluster.initial_master_nodes`
  21. setting>>.
  22. <<modules-discovery-adding-removing-nodes,Adding and removing master-eligible nodes>>::
  23. It is recommended to have a small and fixed number of master-eligible nodes
  24. in a cluster, and to scale the cluster up and down by adding and removing
  25. master-ineligible nodes only. However there are situations in which it may
  26. be desirable to add or remove some master-eligible nodes to or from a
  27. cluster. This section describes the process for adding or removing
  28. master-eligible nodes, including the extra steps that need to be performed
  29. when removing more than half of the master-eligible nodes at the same time.
  30. <<cluster-state-publishing>>::
  31. Cluster state publishing is the process by which the elected master node
  32. updates the cluster state on all the other nodes in the cluster.
  33. <<no-master-block>>::
  34. The no-master block is put in place when there is no known elected master,
  35. and can be configured to determine which operations should be rejected when
  36. it is in place.
  37. Advanced settings::
  38. There are settings that allow advanced users to influence the
  39. <<master-election-settings,master election>> and
  40. <<fault-detection-settings,fault detection>> processes.
  41. <<modules-discovery-quorums>>::
  42. This section describes the detailed design behind the master election and
  43. auto-reconfiguration logic.
  44. include::discovery/discovery.asciidoc[]
  45. include::discovery/bootstrapping.asciidoc[]
  46. include::discovery/adding-removing-nodes.asciidoc[]
  47. include::discovery/publishing.asciidoc[]
  48. include::discovery/no-master-block.asciidoc[]
  49. include::discovery/master-election.asciidoc[]
  50. include::discovery/fault-detection.asciidoc[]
  51. include::discovery/quorums.asciidoc[]