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
69399d4a
Commit
69399d4a
authored
Jun 28, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify instructions since replicate-geo-database creates the replication slot
[ci skip]
parent
c2bfa2e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
27 deletions
+5
-27
doc/gitlab-geo/database.md
doc/gitlab-geo/database.md
+5
-27
No files found.
doc/gitlab-geo/database.md
View file @
69399d4a
...
@@ -151,33 +151,6 @@ The following guide assumes that:
...
@@ -151,33 +151,6 @@ The following guide assumes that:
1.
Now that the PostgreSQL server is set up to accept remote connections, run
1.
Now that the PostgreSQL server is set up to accept remote connections, run
`netstat -plnt`
to make sure that PostgreSQL is listening to the server's
`netstat -plnt`
to make sure that PostgreSQL is listening to the server's
public IP.
public IP.
1.
New for 9.4: Choose a database-friendly name to use for your secondary to use as the
replication slot name. For example, if your domain is
`geo-secondary.mydomain.com`
, you may use
`geo_secondary_my_domain_com`
as
the slot name.
1.
New for 9.4: Create a replication slot in PostgreSQL for the secondary. To do this, you must
login to your PostgreSQL instance with database superuser account an issue a SQL
command:
```sql
SELECT * FROM pg_create_physical_replication_slot('geo_secondary_my_domain_com');
```
For example, on an Omnibus-provided PostgreSQL database, it would be done
in the following way:
```
$ sudo -u gitlab-psql /opt/gitlab/embedded/bin/psql -h /var/opt/gitlab/postgresql -d gitlabhq_production
psql (9.6.1)
Type "help" for help.
gitlabhq_production=# SELECT * FROM pg_create_physical_replication_slot('geo_secondary_my_domain');
slot_name | xlog_position
-------------------------+---------------
geo_secondary_my_domain |
(1 row)
```
1.
Continue to
[
set up the secondary server
](
#step-2-configure-the-secondary-server
)
.
1.
Continue to
[
set up the secondary server
](
#step-2-configure-the-secondary-server
)
.
### Step 2. Configure the secondary server
### Step 2. Configure the secondary server
...
@@ -233,6 +206,11 @@ data before running `pg_basebackup`.
...
@@ -233,6 +206,11 @@ data before running `pg_basebackup`.
sudo -i
sudo -i
```
```
1.
New for 9.4: Choose a database-friendly name to use for your secondary to use as the
replication slot name. For example, if your domain is
`geo-secondary.mydomain.com`
, you may use
`geo_secondary_my_domain_com`
as
the slot name.
1.
Execute the command below to start a backup/restore and begin the replication:
1.
Execute the command below to start a backup/restore and begin the replication:
```
```
...
...
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