[[setup-upgrade]] == Upgrading [IMPORTANT] =========================================== Before upgrading Elasticsearch: * Consult the <> docs. * Test upgrades in a dev environment before upgrading your production cluster. * Always <> before upgrading. You **cannot roll back** to an earlier version unless you have a backup of your data. * If you are using custom plugins, check that a compatible version is available. =========================================== 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. To determine whether a rolling upgrade is supported for your release, please consult this table: [cols="1> (where `y > x`) |5.x |5.y |<> (where `y > x`) |2.x |5.x |<> |5.0.0-alpha1 |5.y |<> |5.0.0-alpha2 |5.y |<> |5.0.0-beta1 |5.y |<> |======================================================================= include::rolling_upgrade.asciidoc[] include::cluster_restart.asciidoc[]