-
Notifications
You must be signed in to change notification settings - Fork 42
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
Elasticsearch 5 upgrade changelog #6200
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first question is probably the most important. This PR should probably not be merged until there is a safety check in that command. Otherwise looks good.
|
||
4. Delete old and unused CommCare Indices by running the following commands. The command will ask you confirm the deletion by typing in the index cname. | ||
``` | ||
cchq ${ENV} django-manage elastic_sync_multiplexed delete apps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this command include a safety check that prevents deletion if it would delete the primary index?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. It is true. The command will check the settings and will only work if multiplexer is turned off and indices are swapped. And then will an attempt to delete older index that is no longer used.
changelog/0076-upgrade-to-es-5.yml
Outdated
or that you have a place to back up to on another disk or remotely. You can check disk usage on each elasticsearch host usage by running: | ||
|
||
``` | ||
cchq ${ENV} run-shell-command elasticsearch "ls -lh /opt/data/elasticsearch-2.4.6" -b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought ls -lh
only gives individual file sizes. Would it make sense to use a command like du -sh
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah you are correct. This will generally list out two folders data and logs. So that's why I have not used du
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought more about it and du -sh
made more sense. I have updated the docs.
Co-authored-by: Graham Herceg <[email protected]> Co-authored-by: Daniel Miller <[email protected]>
Changelog for self hosters with instructions to upgrade to Elasticsearch 5.
Environments Affected
All
Announce New Release
to announce a new commcare-cloud release.