I recently upgraded my Elasticsearch cluster from version 5.3 to 5.6. I’m now updating my schema to address deprecations introduced in 5.6. Below is the diff of the schema updates I intend to make:
If you can I recommend you start to planning to see if you can migrate to version 8.X.
I wish I could! However, I’m dealing with some significant constraints from my company:
No cluster downtime is allowed.
We’re unable to create a new cluster in 7.17 (or 8.x) to replicate new data and migrate historical data due to the need to maintain the 5.3 cluster. Additionally, the large volume of data makes the costs unmanageable.
Given these restrictions, my plan for upgrading to a more current version (at least an LTS) is to leverage the rolling update process and perform three incremental migrations:
5.3 → 5.6
5.6 → 6.8
6.8 → 7.17
Probably yes, I never used string data type, but since this is a deprecation I do not expect for the behavior of queries to change.
That’s good to know! I’ll update my schema to address the deprecation. From what I understand, the updated schema should still work in version 5.6. Then, after the rolling update from 5.6 to 6.8, I’ll need to reindex the cluster. Does that sound correct?
I’ve been referencing this page for details (in case it helps others who might face a similar situation in the future).
Yeah, this will not be smooth, there a lot of changes between those versions and a lot of things may break, too many details to check.
For example, in version 6 types were deprecated and removed in version 7, if you are using it you will need to change how you write your indices.
Also, Elasticsearch can only read indices created on the current and previous version, Elasticsearch 7 can not read indices created in version 5, so you will probably need to reindex all or at least some of your data.
The way you configure your cluster also changed a lot, depending on how it is configured you may need a full cluster restart.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.