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
66232e35
Commit
66232e35
authored
Dec 01, 2017
by
Michael Kozono
Committed by
Nick Thomas
Dec 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rearrange instructions in the Geo DB replication setup docs to avoid known error
parent
d15e704e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
doc/gitlab-geo/database.md
doc/gitlab-geo/database.md
+18
-11
No files found.
doc/gitlab-geo/database.md
View file @
66232e35
...
...
@@ -213,6 +213,10 @@ will not be able to perform all necessary configuration steps. Refer to
postgresql['max_replication_slots'] = 1
# postgresql['max_wal_senders'] = 10
# postgresql['wal_keep_segments'] = 10
# Disable automatic database migrations for now
# (until PostgreSQL is restarted and listening on the interface address)
gitlab_rails['auto_migrate'] = false
```
For external PostgreSQL instances, [see additional instructions][external postgresql].
...
...
@@ -228,27 +232,30 @@ will not be able to perform all necessary configuration steps. Refer to
Replication documentation](https://www.postgresql.org/docs/9.6/static/runtime-config-replication.html)
for more information.
1.
Save the file and
[
reconfigure GitLab
][]
for the database listen changes to
take effect.
**This step will fail.** This is caused by
[Omnibus#2797](https://gitlab.com/gitlab-org/omnibus-gitlab/issues/2797).
1.
Save the file and
[
reconfigure GitLab
][]
for the database listen changes and
the replication slot changes to be applied.
Restart PostgreSQL:
Restart PostgreSQL
for its changes to take effect
:
```bash
gitlab-ctl restart postgresql
```
[Reconfigure GitLab][reconfigure GitLab] again. It should complete cleanly.
1.
Reenable migrations
Edit `/etc/gitlab/gitlab.rb` and **delete** the following lines:
```ruby
# Disable automatic database migrations for now
# (until PostgreSQL is restarted and listening on the interface address)
gitlab_rails['auto_migrate'] = false
```
1.
Restart your primary PostgreSQL server to ensure the replication slot
changes take effect (
`sudo gitlab-ctl restart postgresql`
for
Omnibus-provided PostgreSQL).
Save the file and [reconfigure GitLab][].
1.
Now that the PostgreSQL server is set up to accept remote connections, run
`netstat -plnt`
to make sure that PostgreSQL is listening on port
`5432`
to
the server's
public IP
.
the server's
interface address
.
1.
Verify that clock synchronization is enabled.
...
...
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