archived-settings.asciidoc 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. [[archived-settings]]
  2. == Archived settings
  3. {es} typically removes support for deprecated settings at major version
  4. releases. If you upgrade a cluster with a deprecated persistent cluster setting
  5. to a version that no longer supports the setting, {es} automatically archives
  6. that setting. Similarly, if you upgrade a cluster that contains an index with an
  7. unsupported index setting, {es} archives the index setting.
  8. Archived settings start with the `archived.` prefix and are ignored by {es}.
  9. [discrete]
  10. [[archived-cluster-settings]]
  11. === Archived cluster settings
  12. After an upgrade, you can view archived cluster settings using the
  13. <<cluster-get-settings,cluster get settings API>>.
  14. [source,console]
  15. ----
  16. GET _cluster/settings?flat_settings=true&filter_path=persistent.archived*
  17. ----
  18. You can remove archived cluster settings using the
  19. <<cluster-update-settings,cluster update settings API>>.
  20. [source,console]
  21. ----
  22. PUT _cluster/settings
  23. {
  24. "persistent": {
  25. "archived.*": null
  26. }
  27. }
  28. ----
  29. {es} doesn't archive transient cluster settings or settings in
  30. `elasticsearch.yml`. If a node includes an unsupported setting in
  31. `elasticsearch.yml`, it will return an error at startup.
  32. [discrete]
  33. [[archived-index-settings]]
  34. === Archived index settings
  35. IMPORTANT: Before you upgrade, remove any unsupported index settings from index
  36. and component templates. {es} doesn't archive unsupported index settings in
  37. templates during an upgrade. Attempts to use a template that contains an
  38. unsupported index setting will fail and return an error. This includes automated
  39. operations, such the {ilm-init} rollover action.
  40. You can view archived settings for an index using the <<indices-get-settings,get
  41. index settings API>>.
  42. [source,console]
  43. ----
  44. GET my-index/_settings?flat_settings=true&filter_path=**.settings.archived*
  45. ----
  46. // TEST[s/^/PUT my-index\n/]
  47. Removing archived index settings requires a reindex after the upgrade. However,
  48. reindexing can be resource intensive. Because {es} ignores archived settings,
  49. you can safely leave them in place if wanted.
  50. [source,console]
  51. ----
  52. POST _reindex
  53. {
  54. "source": {
  55. "index": "my-index"
  56. },
  57. "dest": {
  58. "index": "reindexed-v8-my-index"
  59. }
  60. }
  61. ----
  62. // TEST[s/^/PUT my-index\n/]