archived-settings.asciidoc 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. [[archived-settings]]
  2. == Archived settings
  3. If you upgrade a cluster with a deprecated persistent cluster setting to a
  4. version that no longer supports the setting, {es} automatically archives that
  5. setting. Similarly, if you upgrade a cluster that contains an index with an
  6. unsupported index setting, {es} archives the index setting.
  7. We recommend you remove any archived settings after upgrading. Archived
  8. settings are considered invalid and can interfere with your ability to configure
  9. other settings.
  10. Archived settings start with the `archived.` prefix.
  11. [discrete]
  12. [[archived-cluster-settings]]
  13. === Archived cluster settings
  14. Use the following <<cluster-update-settings,cluster update settings>> request to
  15. check for archived cluster settings. If the request returns an empty object
  16. (`{ }`), there are no archived cluster settings.
  17. [source,console]
  18. ----
  19. GET _cluster/settings?flat_settings=true&filter_path=persistent.archived*
  20. ----
  21. To remove any archived cluster settings, use the following
  22. <<cluster-update-settings,cluster update settings>> request.
  23. [source,console]
  24. ----
  25. PUT _cluster/settings
  26. {
  27. "persistent": {
  28. "archived.*": null
  29. }
  30. }
  31. ----
  32. {es} doesn't archive transient cluster settings or settings in
  33. `elasticsearch.yml`. If a node includes an unsupported setting in
  34. `elasticsearch.yml`, it will return an error at startup.
  35. [discrete]
  36. [[archived-index-settings]]
  37. === Archived index settings
  38. IMPORTANT: Before you upgrade, remove any unsupported index settings from index
  39. and component templates. {es} doesn't archive unsupported index settings in
  40. templates during an upgrade. Attempts to use a template that contains an
  41. unsupported index setting will fail and return an error. This includes automated
  42. operations, such the {ilm-init} rollover action.
  43. Archived index settings don't affect an index's configuration or most index
  44. operations, such as indexing or search. However, you'll need to remove them
  45. before you can configure other settings for the index, such as `index.hidden`.
  46. Use the following <<indices-get-settings,get index settings>> request to get a
  47. list indices with archived settings. If the request returns an empty object
  48. (`{ }`), there are no archived index settings.
  49. [source,console]
  50. ----
  51. GET */_settings?flat_settings=true&filter_path=**.settings.archived*
  52. ----
  53. // TEST[s/^/PUT my-index\n/]
  54. Removing an index's archived index settings requires a <<docs-reindex,reindex>>.
  55. Reindexing can be resource-intensive and time-consuming. Before you start, test
  56. the reindex with a subset of the data to estimate your time requirements.
  57. [source,console]
  58. ----
  59. POST _reindex
  60. {
  61. "source": {
  62. "index": "my-index"
  63. },
  64. "dest": {
  65. "index": "reindexed-my-index"
  66. }
  67. }
  68. ----
  69. // TEST[s/^/PUT my-index\n/]