| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | [[modules-gateway]]=== Local gateway settingsThe local gateway stores the cluster state and shard data across fullcluster restarts.The following _static_ settings, which must be set on every master node,control how long a freshly elected master should wait before it tries torecover the cluster state and the cluster's data.NOTE: These settings only take effect on a full cluster restart.`gateway.expected_data_nodes`::(<<static-cluster-setting,Static>>)Number of data nodes expected in the cluster.Recovery of local shards begins when the expected number ofdata nodes join the cluster. Defaults to `0`.`gateway.recover_after_time`::(<<static-cluster-setting,Static>>)If the expected number of nodes is not achieved, the recovery process waitsfor the configured amount of time before trying to recover.Defaults to `5m`.+Once the `recover_after_time` duration has timed out, recovery will startas long as the following condition is met:`gateway.recover_after_data_nodes`::(<<static-cluster-setting,Static>>)Recover as long as this many data nodes have joined the cluster.These settings can be configured in `elasticsearch.yml` as follows:[source,yaml]--------------------------------------------------gateway.expected_data_nodes: 3gateway.recover_after_time: 600sgateway.recover_after_data_nodes: 3--------------------------------------------------[[dangling-indices]]==== Dangling indicesWhen a node joins the cluster, if it finds any shards stored in its localdata directory that do not already exist in the cluster, it will considerthose shards to belong to a "dangling" index. You can list, import ordelete dangling indices using the <<dangling-indices-api,Dangling indicesAPI>>.NOTE: The API cannot offer any guarantees as to whether the imported datatruly represents the latest state of the data when the index was still partof the cluster.
 |