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