Skip to content
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

Merged
merged 5 commits into from
Jan 16, 2024
Merged

Conversation

AmitPhulera
Copy link
Contributor

Changelog for self hosters with instructions to upgrade to Elasticsearch 5.

Environments Affected

All

Announce New Release
  • After merging, I will follow these instructions
    to announce a new commcare-cloud release.

Copy link
Contributor

@millerdev millerdev left a 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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

changelog/0076-upgrade-to-es-5.yml Outdated Show resolved Hide resolved
changelog/0076-upgrade-to-es-5.yml Outdated Show resolved Hide resolved
changelog/0076-upgrade-to-es-5.yml Show resolved Hide resolved
changelog/0076-upgrade-to-es-5.yml Outdated Show resolved Hide resolved
changelog/0076-upgrade-to-es-5.yml Outdated Show resolved Hide resolved
changelog/0076-upgrade-to-es-5.yml Outdated Show resolved Hide resolved
changelog/0076-upgrade-to-es-5.yml Outdated Show resolved Hide resolved
changelog/0076-upgrade-to-es-5.yml Outdated Show resolved Hide resolved
@AmitPhulera AmitPhulera merged commit cddf9fe into master Jan 16, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants