Commit 10dbaafe authored by Dylan Griffith's avatar Dylan Griffith

Document to check pending Elasticsearch migrations before upgrading

This could help self-managed customers potentially avoid issues when
performing a major upgrade that may require the migration to have
finished.
parent d5dead4f
......@@ -138,6 +138,33 @@ pending_job_classes = scheduled_queue.select { |job| job["class"] == "Background
pending_job_classes.each { |job_class| Gitlab::BackgroundMigration.steal(job_class) }
```
## Checking for pending Elasticsearch migrations
This section is only applicable if you have enabled the [Elasticsearch
integration](../integration/elasticsearch.md).
Certain major releases may require [Elasticsearch
migrations](../integration/elasticsearch.md#background-migrations) to be
finished. The pending migrations can be found by running the following command:
**For Omnibus installations**
```shell
sudo gitlab-rake gitlab:elastic:list_pending_migrations
```
**For installations from source**
```shell
cd /home/git/gitlab
sudo -u git -H bundle exec rake gitlab:elastic:list_pending_migrations
```
### What do I do if my Elasticsearch migrations are stuck?
See [how to retry a halted
migration](../integration/elasticsearch.md#retry-a-halted-migration).
## Upgrade paths
Although you can generally upgrade through multiple GitLab versions in one go,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment