-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Upgrade elastic search to 7.x #5620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We are using django-elasticsearch-dsl and unfortunately it is not actively maintained (last commit was on 8th Nov 2018). What should we do in this case? I can see three options.
Edit: |
Just a note.
And all the tests pass. |
To execute the elastic search tests, you need to pass an extra option to tox |
@stsewd |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@dojutsu-user is there anything actionable on this issue now? I'm not sure, but I think it's not possible to upgrade now. In that case, we should add why it's not possible to upgrade and what are the problems here to track them, and propose a plan --or close it, instead of having it open without adding value. |
@humitos
I just read the |
This is blocked on django-es/django-elasticsearch-dsl#170 |
I am unblocking this as django-es/django-elasticsearch-dsl#170 is closed and django-elasticsearch-dsl is supporting elasticsearch version 7 (https://pypi.org/project/django-elasticsearch-dsl/) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We received an email from ES that we need to migrate to a recent version, since 6.x is EOL, this isn't low priority anymore. |
Just checked, we are running |
Changelog for 6.6, 6.7 and 6.8
We are good to upgrade from 6.5 to 6.8. And we don't need a re-index or downtime.
https://www.elastic.co/guide/en/elasticsearch/reference/6.8/breaking-changes.html
https://www.elastic.co/guide/en/elasticsearch/reference/6.8/rolling-upgrades.html |
How to deploy avoiding downtimeBefore the deployThis can be done a day or two before the deploy
During/after the deploy
This won't cause downtime, but it will give outdated results from a time period |
@stsewd on the re-index during "deploy", we should only need to reindex the past 1 day of data, right? So that should be pretty quick. I think this plan sounds good to me. The full reindex might take somewhere around 8-10 hours tho, so we should plan ahead for that. |
Yes, I'll see if I can change the management command to accept that argument or just write a script |
Pretty sure it already supports this, or we have some kind of code that can handle it already. |
Yea, I have this in my notes:
Something similar should work. |
Great, I have updated my comment with that. |
Great -- the only other thing we should consider is what QA will look like on the new vs old cluster. We've had issues in the past with reindexing, so it would be good to have 5-10 queries that we want to test to make sure the results look similar. In particular, the number of results for broad searches, and also the range of versions. Some of this is that we don't do a great job of cleaning up our indexes. So the current index certainly have some invalid/old/deleted data, but we also need to make sure we aren't missing important things. |
https://www.elastic.co/blog/elasticsearch-7-0-0-released
Changelog https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-7.0.html
The text was updated successfully, but these errors were encountered: