Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f8a27ba3
Commit
f8a27ba3
authored
Nov 14, 2016
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix commands pointing to primary/secondary nodes
[ci skip]
parent
a93bada0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
doc/gitlab-geo/database.md
doc/gitlab-geo/database.md
+8
-8
No files found.
doc/gitlab-geo/database.md
View file @
f8a27ba3
...
...
@@ -41,8 +41,6 @@ The following guide assumes that:
-
The IP of the primary server for our examples will be
`1.2.3.4`
, whereas the
secondary's IP will be
`5.6.7.8`
.
[
pgback
]:
http://www.postgresql.org/docs/9.2/static/app-pgbasebackup.html
### Step 1. Configure the primary server
**For Omnibus installations**
...
...
@@ -92,12 +90,11 @@ The following guide assumes that:
public IP.
1.
Continue to
[
set up the secondary server
](
#step-2-configure-the-secondary-server
)
.
---
**For installations from source**
1. SSH into your
GitLab
primary server and login as root
:
1.
SSH into your
database
primary server and login as root:
```
sudo -i
...
...
@@ -155,7 +152,7 @@ The following guide assumes that:
**For Omnibus installations**
1. SSH into your GitLab
prim
ary server and login as root
:
1.
SSH into your GitLab
second
ary server and login as root:
```
sudo -i
...
...
@@ -176,6 +173,7 @@ The following guide assumes that:
```
\q
```
1.
Edit
`/etc/gitlab/gitlab.rb`
and add the following:
```ruby
...
...
@@ -192,7 +190,7 @@ The following guide assumes that:
**For installations from source**
1.
SSH into your database
prim
ary server and login as root:
1.
SSH into your database
second
ary server and login as root:
```
sudo -i
...
...
@@ -241,7 +239,7 @@ see fit replacing the directories and paths.
Make sure to run this on the
**secondary**
server as it removes all PostgreSQL's
data before running
`pg_basebackup`
.
1.
SSH into your
database prim
ary server and login as root:
1.
SSH into your
GitLab second
ary server and login as root:
```
sudo -i
...
...
@@ -294,7 +292,8 @@ data before running `pg_basebackup`.
bash /tmp/replica.sh
```
When prompted, enter the password you set up for the `gitlab_replicator` user.
When prompted, enter the password you set up for the `gitlab_replicator`
user in the first step.
The replication process is now over.
...
...
@@ -302,4 +301,5 @@ The replication process is now over.
We don't support MySQL replication for GitLab Geo.
[
pgback
]:
http://www.postgresql.org/docs/9.2/static/app-pgbasebackup.html
[
reconfigure GitLab
]:
../administration/restart_gitlab.md#omnibus-gitlab-reconfigure
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment