| 123456789101112131415161718192021222324252627 | [[cluster-fault-detection]]=== Cluster fault detectionThe elected master periodically checks each of the nodes in the cluster toensure that they are still connected and healthy. Each node in the cluster alsoperiodically checks the health of the elected master. These checks are knownrespectively as _follower checks_ and _leader checks_.Elasticsearch allows these checks to occasionally fail or timeout withouttaking any action. It considers a node to be faulty only after a number ofconsecutive checks have failed. You can control fault detection behavior with<<modules-discovery-settings,`cluster.fault_detection.*` settings>>.If the elected master detects that a node has disconnected, however, thissituation is treated as an immediate failure. The master bypasses the timeoutand retry setting values and attempts to remove the node from the cluster.Similarly, if a node detects that the elected master has disconnected, thissituation is treated as an immediate failure. The node bypasses the timeout andretry settings and restarts its discovery phase to try and find or elect a newmaster.[[cluster-fault-detection-filesystem-health]]Additionally, each node periodically verifies that its data path is healthy bywriting a small file to disk and then deleting it again. If a node discoversits data path is unhealthy then it is removed from the cluster until the datapath recovers. You can control this behavior with the<<modules-discovery-settings,`monitor.fs.health` settings>>.
 |