Elasticsearch v5.5.3 to v7.17.7

Hello,
I am new to Elasticsearch and need to perform an upgrade from v5.5.3 to v7.17.7.
I want to upgrade directly from v5.5.3 to v7.17.7 in a windows cluster.
Another team in out environment were not able to do the rolling upgrades and so upgraded directly to 7.17.7, re-indexed the DB and were successful.
I need to take the same approach but am confused with the breaking changes and .yml file change documentation.
Is anyone able to summarize what needs to be updated with the .yml file and any other changes?
Any help is greatly appreciated.

Welcome!

Yeah. I think that's the best idea when it's possible for such upgrades...

I'd directly jump to v9.1.3. 7.17.7 is not even the last bugfix version of 7.17... Which is 7.17.29.

So I'd:

  • start a brand new fresh cluster with 9.1.3
  • create the right mappings for your use case. Note that the mapping from 5.x can't be applied directly AFAICT
  • reindex from your source database

I DO NOT recommend switching to 7.17.7.

If you want to simply try that and check that the process will go smoothly, you can:

  • Use cloud.elastic.co and choose either Serverless (SaaS) or Hosted (PaaS) deployment. Serverless is much easier of course.
  • Use start-local which is easy as running:
curl -fsSL https://elastic.co/start-local | sh

It just requires on Windows machine to install Windows Subsystem for Linux (WSL) + Docker.

I hope this could help.

1 Like

Thanks for the insight.