gateway.asciidoc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [[modules-gateway]]
  2. === Local gateway settings
  3. [[dangling-indices]]
  4. The local gateway stores the cluster state and shard data across full
  5. cluster restarts.
  6. The following _static_ settings, which must be set on every <<master-node-role,master-eligible node>>,
  7. control how long a freshly elected master should wait before it tries to
  8. recover the <<cluster-state,cluster state>> and the cluster's data.
  9. NOTE: These settings only take effect during a <<restart-cluster-full,full cluster restart>>.
  10. `gateway.expected_data_nodes`::
  11. (<<static-cluster-setting,Static>>)
  12. Number of data nodes expected in the cluster.
  13. Recovery of local shards begins when the expected number of
  14. data nodes join the cluster. Defaults to `0`.
  15. `gateway.recover_after_time`::
  16. (<<static-cluster-setting,Static>>)
  17. If the expected number of nodes is not achieved, the recovery process waits
  18. for the configured amount of time before trying to recover.
  19. Defaults to `5m`.
  20. +
  21. Once the `recover_after_time` duration has timed out, recovery will start
  22. as long as the following condition is met:
  23. `gateway.recover_after_data_nodes`::
  24. (<<static-cluster-setting,Static>>)
  25. Recover as long as this many data nodes have joined the cluster.
  26. These settings can be configured in `elasticsearch.yml` as follows:
  27. [source,yaml]
  28. --------------------------------------------------
  29. gateway.expected_data_nodes: 3
  30. gateway.recover_after_time: 600s
  31. gateway.recover_after_data_nodes: 3
  32. --------------------------------------------------