misc.asciidoc 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. [[misc-cluster]]
  2. === Miscellaneous cluster settings
  3. [[cluster-read-only]]
  4. ==== Metadata
  5. An entire cluster may be set to read-only with the following _dynamic_ setting:
  6. `cluster.blocks.read_only`::
  7. Make the whole cluster read only (indices do not accept write
  8. operations), metadata is not allowed to be modified (create or delete
  9. indices).
  10. `cluster.blocks.read_only_allow_delete`::
  11. Identical to `cluster.blocks.read_only` but allows to delete indices
  12. to free up resources.
  13. WARNING: Don't rely on this setting to prevent changes to your cluster. Any
  14. user with access to the <<cluster-update-settings,cluster-update-settings>>
  15. API can make the cluster read-write again.
  16. [[cluster-max-tombstones]]
  17. ==== Index Tombstones
  18. The cluster state maintains index tombstones to explicitly denote indices that
  19. have been deleted. The number of tombstones maintained in the cluster state is
  20. controlled by the following property, which cannot be updated dynamically:
  21. `cluster.indices.tombstones.size`::
  22. Index tombstones prevent nodes that are not part of the cluster when a delete
  23. occurs from joining the cluster and reimporting the index as though the delete
  24. was never issued. To keep the cluster state from growing huge we only keep the
  25. last `cluster.indices.tombstones.size` deletes, which defaults to 500. You can
  26. increase it if you expect nodes to be absent from the cluster and miss more
  27. than 500 deletes. We think that is rare, thus the default. Tombstones don't take
  28. up much space, but we also think that a number like 50,000 is probably too big.
  29. [[cluster-logger]]
  30. ==== Logger
  31. The settings which control logging can be updated dynamically with the
  32. `logger.` prefix. For instance, to increase the logging level of the
  33. `indices.recovery` module to `DEBUG`, issue this request:
  34. [source,js]
  35. -------------------------------
  36. PUT /_cluster/settings
  37. {
  38. "transient": {
  39. "logger.org.elasticsearch.indices.recovery": "DEBUG"
  40. }
  41. }
  42. -------------------------------
  43. // CONSOLE
  44. [[persistent-tasks-allocation]]
  45. ==== Persistent Tasks Allocations
  46. Plugins can create a kind of tasks called persistent tasks. Those tasks are
  47. usually long-live tasks and are stored in the cluster state, allowing the
  48. tasks to be revived after a full cluster restart.
  49. Every time a persistent task is created, the master nodes takes care of
  50. assigning the task to a node of the cluster, and the assigned node will then
  51. pick up the task and execute it locally. The process of assigning persistent
  52. tasks to nodes is controlled by the following property, which can be updated
  53. dynamically:
  54. `cluster.persistent_tasks.allocation.enable`::
  55. +
  56. --
  57. Enable or disable allocation for persistent tasks:
  58. * `all` - (default) Allows persistent tasks to be assigned to nodes
  59. * `none` - No allocations are allowed for any type of persistent task
  60. This setting does not affect the persistent tasks that are already being executed.
  61. Only newly created persistent tasks, or tasks that must be reassigned (after a node
  62. left the cluster, for example), are impacted by this setting.
  63. --