Elasticsearch Upgrade from 2.4 to 6.8

We are planning to upgrade elasticsearch from version 2.4 to 6.8. The current version of elasticsearch was an upgrade from 1.7 (side by side upgrade. Indices were restored to the new cluster). Since the indices are created by version 1.7, we are planning to perform the following steps to upgrade the cluster.

  1. We have to upgrade the indices that are created in 1.7 to 2.4 by reindexing them before we can restore the indices to a new cluster with version 5.x. Otherwise, the nodes from the new cluster won't start.
  2. Once the re-indexing is done (step 1), we can take a fresh snapshot from the existing cluster (2.4) and restore it to the new cluster with version 5.x (side by side upgrade).
  3. We have to reindex the indices on the new cluster to 5.x before we can perform an in-place upgrade of the new cluster to 6.x.
  4. Perform the in-place upgrade by installing new binaries and removing old binaries and pointing to the new .yml file.

I have omitted steps like the template, indices settings, and mapping changes to keep the conversation around the indices version. Please let me know if the above steps make sense or need to modify them.

Why not start up a 6.8 cluster (or even 7.10) and then run a remote reindex of all the old data?

@warkolm Remote re-indexing will take longer due to the volume of data and we don't have the budget for hosting the second cluster for months. Can you please confirm the above steps look fine?

It should work, yes.

@warkolm Thank you so much for your response.

Just make sure you take snapshots before every major step :slight_smile:

Sure :smiley:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.