I am planning to upgrade the Elasticsearch from 5.6 to 8.7, I wanted to seek suggestions to see if it is a good idea to go directly from 5.6 to 8.7, or do a roll upgrade, application is built on Django and uses PostgreSQL for database.
The only way to do a direct update would be to reindex your data into a new cluster running the new version. Upgrading in place would require you to upgrade one major version at a time (5.6 to 6.8 to 7.17 to 8.7) and run the migration assistant and reindex the data at each version. When making this kind of large jump it is often easier to create a new cluster with new config and mappings (a lot has changed between versions) and then reindex the data from the existing cluster. You probably also need to change or upgrade client libraries so downtime will be required.
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.