upgrade.asciidoc 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [[setup-upgrade]]
  2. == Upgrading Elasticsearch
  3. [IMPORTANT]
  4. ===========================================
  5. Before upgrading Elasticsearch:
  6. * Consult the <<breaking-changes,breaking changes>> docs.
  7. * Test upgrades in a dev environment before upgrading your production cluster.
  8. * Always <<modules-snapshots,back up your data>> before upgrading.
  9. You **cannot roll back** to an earlier version unless you have a backup of your data.
  10. * If you are using custom plugins, check that a compatible version is available.
  11. ===========================================
  12. Elasticsearch can usually be upgraded using a rolling upgrade process,
  13. resulting in no interruption of service. This section details how to perform
  14. both rolling upgrades and upgrades with full cluster restarts.
  15. To determine whether a rolling upgrade is supported for your release, please
  16. consult this table:
  17. [cols="1<m,1<m,3",options="header",]
  18. |=======================================================================
  19. |Upgrade From |Upgrade To |Supported Upgrade Type
  20. |< 5.x |6.x |<<reindex-upgrade,Reindex to upgrade>>
  21. |5.x |5.y |<<rolling-upgrades,Rolling upgrade>> (where `y > x`)
  22. |5.x |6.x |<<restart-upgrade,Full cluster restart>>
  23. |6.0.0 pre GA |6.x |<<restart-upgrade,Full cluster restart>>
  24. |6.x |6.y |<<rolling-upgrades,Rolling upgrade>> (where `y > x`)
  25. |=======================================================================
  26. [IMPORTANT]
  27. .Indices created in Elasticsearch 2.x or before
  28. ===============================================
  29. Elasticsearch is able to read indices created in the *previous major version
  30. only*. For instance, Elasticsearch 6.x can use indices created in
  31. Elasticsearch 5.x, but not those created in Elasticsearch 2.x or before.
  32. This condition also applies to indices backed up with
  33. <<modules-snapshots,snapshot and restore>>. If an index was originally
  34. created in 2.x, it cannot be restored into a 6.x cluster even if the
  35. snapshot was made by a 5.x cluster.
  36. Elasticsearch 6.x nodes will fail to start in the presence of too old indices.
  37. See <<reindex-upgrade>> for more information about how to upgrade old indices.
  38. ===============================================
  39. include::rolling_upgrade.asciidoc[]
  40. include::cluster_restart.asciidoc[]
  41. include::reindex_upgrade.asciidoc[]