upgrade.asciidoc 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. [[setup-upgrade]]
  2. == Upgrading Elasticsearch
  3. [IMPORTANT]
  4. ===========================================
  5. Before upgrading Elasticsearch:
  6. * Review the <<breaking-changes,breaking changes>> for changes that
  7. affect your application.
  8. * Check the <<deprecation-logging, deprecation log>> to see if you are using
  9. any deprecated features.
  10. * If you use custom plugins, make sure compatible versions are available.
  11. * Test upgrades in a dev environment before upgrading your production cluster.
  12. * <<modules-snapshots,Back up your data>> before upgrading.
  13. You **cannot roll back** to an earlier version unless you have a backup of
  14. your data.
  15. ===========================================
  16. Elasticsearch can usually be upgraded using a <<rolling-upgrades,Rolling upgrade>>
  17. process so upgrading does not interrupt service. However, you might
  18. need to <<reindex-upgrade,Reindex to upgrade>> indices created in older versions.
  19. Upgrades across major versions prior to 6.0 require a <<restart-upgrade,Full cluster restart>>.
  20. The following table shows when you can perform a rolling upgrade, when you
  21. need to reindex or delete old indices, and when a full cluster restart is
  22. required.
  23. [[upgrade-paths]]
  24. [cols="1<m,1<m,3",options="header",]
  25. |=======================================================================
  26. |Upgrade From |Upgrade To |Supported Upgrade Type
  27. |5.x |5.y |<<rolling-upgrades,Rolling upgrade>> (where `y > x`)
  28. |5.6 |6.x |<<rolling-upgrades,Rolling upgrade>> footnoteref:[reindexfn, You must delete or reindex any indices created in 2.x before upgrading.]
  29. |5.0-5.5 |6.x |<<restart-upgrade,Full cluster restart>> footnoteref:[reindexfn]
  30. |<5.x |6.x |<<reindex-upgrade,Reindex to upgrade>>
  31. |6.x |6.y |<<rolling-upgrades,Rolling upgrade>> (where `y > x`) footnote:[Upgrading from a 6.0.0 pre GA version requires a full cluster restart.]
  32. |=======================================================================
  33. [IMPORTANT]
  34. ===============================================
  35. Elasticsearch can read indices created in the *previous major version*.
  36. Older indices must be reindexed or deleted. Elasticsearch 6.x
  37. can use indices created in Elasticsearch 5.x, but not those created in
  38. Elasticsearch 2.x or before. Elasticsearch 5.x can use indices created in
  39. Elasticsearch 2.x, but not those created in 1.x or before.
  40. This also applies to indices backed up with <<modules-snapshots,snapshot
  41. and restore>>. If an index was originally created in 2.x, it cannot be
  42. restored to a 6.x cluster even if the snapshot was created by a 2.x cluster.
  43. Elasticsearch nodes will fail to start if incompatible indices are present.
  44. For information about how to upgrade old indices, see <<reindex-upgrade,
  45. Reindex to upgrade>>.
  46. ===============================================
  47. include::upgrade/rolling_upgrade.asciidoc[]
  48. include::upgrade/cluster_restart.asciidoc[]
  49. include::upgrade/reindex_upgrade.asciidoc[]