You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _migrate-or-upgrade/rolling-upgrade/index.md
+23-6Lines changed: 23 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,10 +18,9 @@ Rolling upgrades, sometimes referred to as "node replacement upgrades," can be p
18
18
This document serves as a high-level, platform-agnostic overview of the rolling upgrade procedure. For specific examples of commands, scripts, and configuration files, refer to the [Rolling upgrade lab]({{site.url}}{{site.baseurl}}/migrate-or-upgrade/rolling-upgrade/rolling-upgrade-lab/).
19
19
20
20
## Preparing to upgrade
21
+
Before making any changes to your OpenSearch cluster, is it highly recommended to back up your configuration files and create a [snapshot]({{site.url}}{{site.baseurl}}/tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore/) of the cluster state and indexes.
21
22
22
-
Review [Upgrading OpenSearch]({{site.url}}{{site.baseurl}}/migrate-or-upgrade/rolling-upgrade/) for recommendations about backing up your configuration files and creating a snapshot of the cluster state and indexes before you make any changes to your OpenSearch cluster.
23
-
24
-
**Important:** OpenSearch nodes cannot be downgraded. If you need to revert the upgrade, then you will need to perform a fresh installation of OpenSearch and restore the cluster from a snapshot. Take a snapshot and store it in a remote repository before beginning the upgrade procedure.
23
+
**Important**: OpenSearch nodes **cannot be downgraded**. If you need to revert the upgrade, then you will need to perform a new installation of OpenSearch and restore the cluster from a snapshot. Take a snapshot and store it in a remote repository before beginning the upgrade procedure. Rolling upgrades are **only supported between major adjacent versions**, for example, from OpenSearch 1.x to 2.x but not 1.x to 3.x.
1. Review your cluster and identify the first node to upgrade. Eligible cluster manager nodes should be upgraded last because OpenSearch nodes can join a cluster with manager nodes running an older version, but they cannot join a cluster with all manager nodes running a newer version.
92
+
1. Review your cluster and identify the first node to upgrade. The nodes should be upgraded in the following order:
Eligible cluster manager nodes should be upgraded last because OpenSearch nodes can join a cluster with cluster manager nodes running an older version, but they cannot join a cluster with all cluster manager nodes running a newer version.
99
+
{: .important}
100
+
94
101
1. Query the `_cat/nodes` endpoint to identify which node was promoted to cluster manager. The following command includes additional query parameters that request only the name, version, node.role, and master headers. Note that OpenSearch 1.x versions use the term "master," which has been deprecated and replaced by "cluster_manager" in OpenSearch 2.x and later.
95
102
```bash
96
103
GET "/_cat/nodes?v&h=name,version,node.role,master"| column -t
1. Stop the node you are upgrading. Do not delete the volume associated with the container when you delete the container. The new OpenSearch container will use the existing volume. **Deleting the volume will result in data loss**.
113
+
1. Stop the node you are upgrading. If running this in Docker, do not delete the volume associated with the container when you delete the container. The new OpenSearch container will use the existing volume. **Deleting the volume will result in data loss**.
107
114
1. Confirm that the associated node has been dismissed from the cluster by querying the `_cat/nodes` API endpoint:
108
115
```bash
109
116
GET "/_cat/nodes?v&h=name,version,node.role,master"| column -t
`os-node-01` is no longer listed because the container has been stopped and deleted.
119
-
1. Deploy a new container running the desired version of OpenSearch and mapped to the same volume as the container you deleted.
126
+
1. Upgrade the node:
127
+
- If running in Docker, deploy a new container running the desired version of OpenSearch, mapped to the same volume as the container you deleted.
128
+
- If upgrading using [Debian]({{site.url}}{{site.baseurl}}/install-and-configure/install-opensearch/debian/) or [RPM]({{site.url}}{{site.baseurl}}/install-and-configure/install-opensearch/rpm/) packages, install OpenSearch using `rpm`, `yum`, or `dpkg` and start the service. No further configuration is needed because locations and files are preserved.
129
+
- If upgrading using [Tarball]({{site.url}}{{site.baseurl}}/install-and-configure/install-opensearch/tar/), the following actions are required:
130
+
- Back up `jvm.options`, `opensearch.yml`, certificates, and the `data` folder.
131
+
- Extract the new tarball.
132
+
- Copy the previous `data` directory to the new `data` directory, **otherwise data will be lost**.
133
+
- Copy the previous `opensearch.yml` file to the new `config/opensearch.yml` file.
134
+
- Copy the previous `jvm.options` file to the new `config/jvm.options` file.
135
+
- Copy the TLS certificates listed in the `opensearch.yml` file to the `./config/` directory.
136
+
- Start OpenSearch.
120
137
1. Query the `_cat/nodes` endpoint after OpenSearch is running on the new node to confirm that it has joined the cluster:
121
138
```bash
122
139
GET "/_cat/nodes?v&h=name,version,node.role,master"| column -t
0 commit comments