master-election.asciidoc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [[master-election-settings]]
  2. === Master election settings
  3. The following settings control the scheduling of elections.
  4. `cluster.election.initial_timeout`::
  5. Sets the upper bound on how long a node will wait initially, or after the
  6. elected master fails, before attempting its first election. This defaults
  7. to `100ms`.
  8. `cluster.election.back_off_time`::
  9. Sets the amount to increase the upper bound on the wait before an election
  10. on each election failure. Note that this is _linear_ backoff. This defaults
  11. to `100ms`
  12. `cluster.election.max_timeout`::
  13. Sets the maximum upper bound on how long a node will wait before attempting
  14. an first election, so that an network partition that lasts for a long time
  15. does not result in excessively sparse elections. This defaults to `10s`
  16. `cluster.election.duration`::
  17. Sets how long each election is allowed to take before a node considers it to
  18. have failed and schedules a retry. This defaults to `500ms`.
  19. [float]
  20. ==== Joining an elected master
  21. During master election, or when joining an existing formed cluster, a node will
  22. send a join request to the master in order to be officially added to the
  23. cluster. This join process can be configured with the following settings.
  24. `cluster.join.timeout`::
  25. Sets how long a node will wait after sending a request to join a cluster
  26. before it considers the request to have failed and retries. Defaults to
  27. `60s`.