Commit 3acfc746 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'hchouraria-docs-zero-downtime-ensure-auto-migrate-enabled' into 'master'

Ensure regular migrations are permitted

See merge request gitlab-org/gitlab!72558
parents d81d3cbb c51d5c9d
...@@ -100,6 +100,8 @@ Before following these instructions, note the following **important** informatio ...@@ -100,6 +100,8 @@ Before following these instructions, note the following **important** informatio
these instructions, **it is not possible to always achieve true zero downtime these instructions, **it is not possible to always achieve true zero downtime
updates**. Users may see some connections timeout or be refused for a few minutes, updates**. Users may see some connections timeout or be refused for a few minutes,
depending on which services need to restart. depending on which services need to restart.
- On Omnibus deployments, the `/etc/gitlab/gitlab.rb` configuration file must **not** have
`gitlab_rails['auto_migrate'] = true`.
1. Create an empty file at `/etc/gitlab/skip-auto-reconfigure`. This prevents upgrades from running `gitlab-ctl reconfigure`, which by default automatically stops GitLab, runs all database migrations, and restarts GitLab. 1. Create an empty file at `/etc/gitlab/skip-auto-reconfigure`. This prevents upgrades from running `gitlab-ctl reconfigure`, which by default automatically stops GitLab, runs all database migrations, and restarts GitLab.
...@@ -208,7 +210,9 @@ load balancer to latest GitLab version. ...@@ -208,7 +210,9 @@ load balancer to latest GitLab version.
If you are an Enterprise Edition user, replace `gitlab-ce` with If you are an Enterprise Edition user, replace `gitlab-ce` with
`gitlab-ee` in the above command. `gitlab-ee` in the above command.
1. Get the regular migrations and latest code in place: 1. Get the regular migrations and latest code in place. Before running this step,
the deploy node's `/etc/gitlab/gitlab.rb` configuration file must have
`gitlab_rails['auto_migrate'] = true` to permit regular migrations.
```shell ```shell
sudo SKIP_POST_DEPLOYMENT_MIGRATIONS=true gitlab-ctl reconfigure sudo SKIP_POST_DEPLOYMENT_MIGRATIONS=true gitlab-ctl reconfigure
......
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