The local gateway module stores the cluster state and shard data across full cluster 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 to recover the cluster state and the cluster’s data:
gateway.expected_nodes
0
gateway.expected_master_nodes
0
gateway.expected_data_nodes
0
gateway.recover_after_time
5m
if one of the expected_nodes
settings is configured.
Once the recover_after_time
duration has timed out, recovery will start
as long as the following conditions are met:
gateway.recover_after_nodes
gateway.recover_after_master_nodes
gateway.recover_after_data_nodes
These settings only take effect on a full cluster restart.