gateway.asciidoc 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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_nodes`::
  10. (<<static-cluster-setting,Static>>)
  11. deprecated:[7.7.0, This setting will be removed in 8.0. Use `gateway.expected_data_nodes` instead.]
  12. Number of data or master nodes expected in the cluster.
  13. Recovery of local shards begins when the expected number of
  14. nodes join the cluster. Defaults to `0`.
  15. `gateway.expected_master_nodes`::
  16. (<<static-cluster-setting,Static>>)
  17. deprecated:[7.7.0, This setting will be removed in 8.0. Use `gateway.expected_data_nodes` instead.]
  18. Number of master nodes expected in the cluster.
  19. Recovery of local shards begins when the expected number of
  20. master nodes join the cluster. Defaults to `0`.
  21. `gateway.expected_data_nodes`::
  22. (<<static-cluster-setting,Static>>)
  23. Number of data nodes expected in the cluster.
  24. Recovery of local shards begins when the expected number of
  25. data nodes join the cluster. Defaults to `0`.
  26. `gateway.recover_after_time`::
  27. (<<static-cluster-setting,Static>>)
  28. If the expected number of nodes is not achieved, the recovery process waits
  29. for the configured amount of time before trying to recover.
  30. Defaults to `5m` if one of the `expected_nodes` settings is configured.
  31. +
  32. Once the `recover_after_time` duration has timed out, recovery will start
  33. as long as the following conditions are met:
  34. `gateway.recover_after_nodes`::
  35. (<<static-cluster-setting,Static>>)
  36. deprecated:[7.7.0, This setting will be removed in 8.0. Use `gateway.recover_after_data_nodes` instead.]
  37. Recover as long as this many data or master nodes have joined the cluster.
  38. `gateway.recover_after_master_nodes`::
  39. (<<static-cluster-setting,Static>>)
  40. deprecated:[7.7.0, This setting will be removed in 8.0. Use `gateway.recover_after_data_nodes` instead.]
  41. Recover as long as this many master nodes have joined the cluster.
  42. `gateway.recover_after_data_nodes`::
  43. (<<static-cluster-setting,Static>>)
  44. Recover as long as this many data nodes have joined the cluster.
  45. [[dangling-indices]]
  46. ==== Dangling indices
  47. When a node joins the cluster, if it finds any shards stored in its local
  48. data directory that do not already exist in the cluster, it will consider
  49. those shards to belong to a "dangling" index. You can list, import or
  50. delete dangling indices using the <<dangling-indices-api,Dangling indices
  51. API>>.
  52. NOTE: The API cannot offer any guarantees as to whether the imported data
  53. truly represents the latest state of the data when the index was still part
  54. of the cluster.