gateway.asciidoc 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [[modules-gateway]]
  2. === Local gateway settings
  3. The local gateway stores the cluster state and shard data across full
  4. cluster restarts.
  5. The following _static_ settings, which must be set on every master node,
  6. control how long a freshly elected master should wait before it tries to
  7. recover the cluster state and the cluster's data.
  8. NOTE: These settings only take effect on a full cluster restart.
  9. `gateway.expected_data_nodes`::
  10. (<<static-cluster-setting,Static>>)
  11. Number of data nodes expected in the cluster.
  12. Recovery of local shards begins when the expected number of
  13. data nodes join the cluster. Defaults to `0`.
  14. `gateway.recover_after_time`::
  15. (<<static-cluster-setting,Static>>)
  16. If the expected number of nodes is not achieved, the recovery process waits
  17. for the configured amount of time before trying to recover.
  18. Defaults to `5m`.
  19. +
  20. Once the `recover_after_time` duration has timed out, recovery will start
  21. as long as the following condition is met:
  22. `gateway.recover_after_data_nodes`::
  23. (<<static-cluster-setting,Static>>)
  24. Recover as long as this many data nodes have joined the cluster.
  25. These settings can be configured in `elasticsearch.yml` as follows:
  26. [source,yaml]
  27. --------------------------------------------------
  28. gateway.expected_data_nodes: 3
  29. gateway.recover_after_time: 600s
  30. gateway.recover_after_data_nodes: 3
  31. --------------------------------------------------
  32. [[dangling-indices]]
  33. ==== Dangling indices
  34. When a node joins the cluster, if it finds any shards stored in its local
  35. data directory that do not already exist in the cluster, it will consider
  36. those shards to belong to a "dangling" index. You can list, import or
  37. delete dangling indices using the <<dangling-indices-api,Dangling indices
  38. API>>.
  39. NOTE: The API cannot offer any guarantees as to whether the imported data
  40. truly represents the latest state of the data when the index was still part
  41. of the cluster.