fault-detection.asciidoc 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. [[cluster-fault-detection]]
  2. === Cluster fault detection
  3. The elected master periodically checks each of the nodes in the cluster to
  4. ensure that they are still connected and healthy. Each node in the cluster also
  5. periodically checks the health of the elected master. These checks are known
  6. respectively as _follower checks_ and _leader checks_.
  7. Elasticsearch allows these checks to occasionally fail or timeout without
  8. taking any action. It considers a node to be faulty only after a number of
  9. consecutive checks have failed. You can control fault detection behavior with
  10. <<modules-discovery-settings,`cluster.fault_detection.*` settings>>.
  11. If the elected master detects that a node has disconnected, however, this
  12. situation is treated as an immediate failure. The master bypasses the timeout
  13. and retry setting values and attempts to remove the node from the cluster.
  14. Similarly, if a node detects that the elected master has disconnected, this
  15. situation is treated as an immediate failure. The node bypasses the timeout and
  16. retry settings and restarts its discovery phase to try and find or elect a new
  17. master.
  18. [[cluster-fault-detection-filesystem-health]]
  19. Additionally, each node periodically verifies that its data path is healthy by
  20. writing a small file to disk and then deleting it again. If a node discovers
  21. its data path is unhealthy then it is removed from the cluster until the data
  22. path recovers. You can control this behavior with the
  23. <<modules-discovery-settings,`monitor.fs.health` settings>>.
  24. [[cluster-fault-detection-cluster-state-publishing]]
  25. The elected master node will also remove nodes from the cluster if nodes are unable
  26. to apply an updated cluster state within a reasonable time, which is by default
  27. 120s after the cluster state update started. See
  28. <<cluster-state-publishing, cluster state publishing>> for a more detailed description.