2014-04-01 12:28:08 -04:00
|
|
|
[[setup-upgrade]]
|
|
|
|
== Upgrading
|
|
|
|
|
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
|
|
|
|
2015-06-19 10:27:28 -04:00
|
|
|
* Consult the <<breaking-changes,breaking changes>> docs.
|
|
|
|
* Test upgrades in a dev environment before upgrading your production cluster.
|
|
|
|
* Always back up your data before upgrading. You cannot roll back to an earlier
|
|
|
|
version unless you have a <<backup,backup>> of your data.
|
|
|
|
===========================================
|
2014-04-01 12:28:08 -04:00
|
|
|
|
2015-06-19 10:27:28 -04:00
|
|
|
Elasticsearch can usually be upgraded using a rolling upgrade process,
|
|
|
|
resulting in no interruption of service. This section details how to perform
|
|
|
|
both rolling upgrades and upgrades with full cluster restarts.
|
2014-04-01 12:28:08 -04:00
|
|
|
|
2015-06-19 10:27:28 -04:00
|
|
|
To determine whether a rolling upgrade is supported for your release, please
|
|
|
|
consult this table:
|
2014-04-01 12:28:08 -04:00
|
|
|
|
2015-06-19 10:27:28 -04:00
|
|
|
[cols="1<m,1<m,3",options="header",]
|
|
|
|
|=======================================================================
|
|
|
|
|Upgrade From |Upgrade To |Supported Upgrade Type
|
2015-12-05 07:27:25 -05:00
|
|
|
|0.90.x |2.x |<<restart-upgrade,Full cluster restart>>
|
2015-06-19 10:27:28 -04:00
|
|
|
|1.x |2.x |<<restart-upgrade,Full cluster restart>>
|
2015-12-05 07:27:25 -05:00
|
|
|
|2.x |2.y |<<rolling-upgrades,Rolling upgrade>> (where `y > x `)
|
|
|
|
|2.x |3.x |<<restart-upgrade,Full cluster restart>>
|
2015-06-19 10:27:28 -04:00
|
|
|
|=======================================================================
|
2014-04-01 12:28:08 -04:00
|
|
|
|
2016-02-07 10:30:42 -05:00
|
|
|
===========================================
|
|
|
|
Upgrading Elasticsearch with Plugins
|
|
|
|
|
|
|
|
Take plugins into consideration as well when upgrading. Plugins must be upgraded alongside Elasticsearch.
|
|
|
|
|
|
|
|
Check with your plugin's provider to ensure that the plugin is compatible with
|
|
|
|
your targeted version of Elasticsearch. If doing a rolling upgrade, it may be
|
|
|
|
worth checking as well that the plugin works across a mixed-version cluster.
|
|
|
|
|
|
|
|
The process for both <<rolling-upgrades,Rolling upgrade>> and
|
|
|
|
<<restart-upgrade,Full cluster restart>> is generally as follows, per node.
|
|
|
|
|
|
|
|
* Shut down Elasticsearch
|
|
|
|
* Upgrade Elasticsearch
|
|
|
|
* Upgrade Plugins
|
|
|
|
* Start up Elasticsearch
|
|
|
|
|
|
|
|
===========================================
|
2015-07-08 19:32:38 -04:00
|
|
|
|
2015-06-19 10:27:28 -04:00
|
|
|
include::backup.asciidoc[]
|
2014-04-01 12:28:08 -04:00
|
|
|
|
2015-06-19 10:27:28 -04:00
|
|
|
include::rolling_upgrade.asciidoc[]
|
2014-04-01 12:28:08 -04:00
|
|
|
|
2015-06-19 10:27:28 -04:00
|
|
|
include::cluster_restart.asciidoc[]
|