2014-04-01 12:28:08 -04:00
|
|
|
[[setup-upgrade]]
|
2017-12-05 13:58:52 -05:00
|
|
|
= Upgrade Elasticsearch
|
|
|
|
|
|
|
|
[partintro]
|
|
|
|
--
|
|
|
|
Elasticsearch can usually be upgraded using a <<rolling-upgrades,Rolling upgrade>>
|
|
|
|
process so upgrading does not interrupt service. However, you might
|
|
|
|
need to <<reindex-upgrade,Reindex to upgrade>> indices created in older versions.
|
|
|
|
Upgrades across major versions prior to 6.0 require a <<restart-upgrade,Full cluster restart>>.
|
|
|
|
|
|
|
|
When upgrading to a new version of Elasticsearch, you need to upgrade each
|
|
|
|
of the products in your Elastic Stack. The steps you need to take to upgrade
|
|
|
|
differ depending on which products you are using. Want a list that's tailored
|
|
|
|
to your stack? Try out our {upgrade_guide}[Interactive Upgrade Guide]. For
|
|
|
|
more information about upgrading your stack, see {stack-ref}[Upgrading the
|
|
|
|
Elastic Stack].
|
2014-04-01 12:28:08 -04:00
|
|
|
|
2015-05-04 10:48:53 -04:00
|
|
|
[IMPORTANT]
|
2015-06-19 10:27:28 -04:00
|
|
|
===========================================
|
|
|
|
Before upgrading Elasticsearch:
|
2014-04-01 12:28:08 -04:00
|
|
|
|
2017-08-23 17:03:14 -04:00
|
|
|
* Review the <<breaking-changes,breaking changes>> for changes that
|
|
|
|
affect your application.
|
|
|
|
* Check the <<deprecation-logging, deprecation log>> to see if you are using
|
|
|
|
any deprecated features.
|
|
|
|
* If you use custom plugins, make sure compatible versions are available.
|
2015-06-19 10:27:28 -04:00
|
|
|
* Test upgrades in a dev environment before upgrading your production cluster.
|
2017-08-23 17:03:14 -04:00
|
|
|
* <<modules-snapshots,Back up your data>> before upgrading.
|
|
|
|
You **cannot roll back** to an earlier version unless you have a backup of
|
|
|
|
your data.
|
|
|
|
|
2015-06-19 10:27:28 -04:00
|
|
|
===========================================
|
2014-04-01 12:28:08 -04:00
|
|
|
|
|
|
|
|
2017-08-23 17:03:14 -04:00
|
|
|
The following table shows when you can perform a rolling upgrade, when you
|
|
|
|
need to reindex or delete old indices, and when a full cluster restart is
|
|
|
|
required.
|
2014-04-01 12:28:08 -04:00
|
|
|
|
2017-08-23 17:03:14 -04:00
|
|
|
[[upgrade-paths]]
|
2015-06-19 10:27:28 -04:00
|
|
|
[cols="1<m,1<m,3",options="header",]
|
|
|
|
|=======================================================================
|
|
|
|
|Upgrade From |Upgrade To |Supported Upgrade Type
|
2018-06-11 22:04:36 -04:00
|
|
|
|5.x |5.y |<<rolling-upgrades,Rolling upgrade>> (where `y > x`)
|
|
|
|
|5.6 |6.x |<<rolling-upgrades,Rolling upgrade>> footnoteref:[reindexfn, You must delete or reindex any indices created in 2.x before upgrading.]
|
|
|
|
|5.0-5.5 |6.x |<<restart-upgrade,Full cluster restart>> footnoteref:[reindexfn]
|
|
|
|
|<5.x |6.x |<<reindex-upgrade,Reindex to upgrade>>
|
|
|
|
|6.x |6.y |<<rolling-upgrades,Rolling upgrade>> (where `y > x`)
|
2015-06-19 10:27:28 -04:00
|
|
|
|=======================================================================
|
2014-04-01 12:28:08 -04:00
|
|
|
|
2016-10-11 06:14:35 -04:00
|
|
|
[IMPORTANT]
|
|
|
|
===============================================
|
|
|
|
|
2017-08-23 17:03:14 -04:00
|
|
|
Elasticsearch can read indices created in the *previous major version*.
|
2018-06-11 22:04:36 -04:00
|
|
|
Older indices must be reindexed or deleted. Elasticsearch 6.x
|
|
|
|
can use indices created in Elasticsearch 5.x, but not those created in
|
|
|
|
Elasticsearch 2.x or before. Elasticsearch 5.x can use indices created in
|
|
|
|
Elasticsearch 2.x, but not those created in 1.x or before.
|
2017-08-23 17:03:14 -04:00
|
|
|
|
|
|
|
This also applies to indices backed up with <<modules-snapshots,snapshot
|
2018-06-11 22:04:36 -04:00
|
|
|
and restore>>. If an index was originally created in 2.x, it cannot be
|
|
|
|
restored to a 6.x cluster even if the snapshot was created by a 5.x cluster.
|
2016-10-11 06:14:35 -04:00
|
|
|
|
2017-08-23 17:03:14 -04:00
|
|
|
Elasticsearch nodes will fail to start if incompatible indices are present.
|
2016-10-11 06:14:35 -04:00
|
|
|
|
2017-08-23 17:03:14 -04:00
|
|
|
For information about how to upgrade old indices, see <<reindex-upgrade,
|
|
|
|
Reindex to upgrade>>.
|
2016-10-11 06:14:35 -04:00
|
|
|
|
|
|
|
===============================================
|
2017-12-05 13:58:52 -05:00
|
|
|
--
|
2016-10-11 06:14:35 -04:00
|
|
|
|
2017-08-23 17:03:14 -04:00
|
|
|
include::upgrade/rolling_upgrade.asciidoc[]
|
2014-04-01 12:28:08 -04:00
|
|
|
|
2017-08-23 17:03:14 -04:00
|
|
|
include::upgrade/cluster_restart.asciidoc[]
|
2016-10-11 06:14:35 -04:00
|
|
|
|
2017-12-15 03:42:36 -05:00
|
|
|
include::upgrade/reindex_upgrade.asciidoc[]
|