Commit 87f770d4 authored by Stan Hu's avatar Stan Hu

Merge branch '4481-move-gitlab-geo-check-after-database-replication' into 'master'

Move gitlab:geo:check after database replication

Closes #4481

See merge request gitlab-org/gitlab-ee!3941
parents 32435ae8 d059a3c8
---
title: Move geo status check after db replication to avoid anticipated failures
merge_request: 3941
author:
type: other
......@@ -354,13 +354,6 @@ because we have not yet configured the secondary server. This is the next step.
gitlab-ctl reconfigure
```
1. Verify the secondary if configured correctly and that the primary is
reachable:
```
gitlab-rake gitlab:geo:check
```
### Step 4. Initiate the replication process
Below we provide a script that connects the database on the secondary node to
......@@ -387,7 +380,7 @@ data before running `pg_basebackup`.
name as shown in the commands below.
1. Execute the command below to start a backup/restore and begin the replication
(various options that can be added to these commands are listed below):
(various options that can be added to these commands are listed below):
```bash
gitlab-ctl replicate-geo-database --slot-name=secondary_example --host=1.2.3.4
......@@ -415,6 +408,13 @@ data before running `pg_basebackup`.
- If you're repurposing an old server into a Geo secondary, you'll need to
add `--force` to the command line.
1. Verify that the secondary is configured correctly and that the primary is
reachable:
```
gitlab-rake gitlab:geo:check
```
The replication process is now complete.
### External PostgreSQL instances
......
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