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
16e84f9f
Commit
16e84f9f
authored
Oct 24, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify Geo installation docs: tracking DB is enabled by default now
Closes #3827 [ci skip]
parent
26617719
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
30 deletions
+5
-30
doc/gitlab-geo/database.md
doc/gitlab-geo/database.md
+5
-30
No files found.
doc/gitlab-geo/database.md
View file @
16e84f9f
...
...
@@ -186,41 +186,16 @@ The following guide assumes that:
geo_secondary_role['enable'] = true
```
1.
Optional since GitLab 9.1, and required for GitLab 10.0 or higher:
[
Enable tracking database on the secondary server
](
#enable-tracking-database-on-the-secondary-server
)
1.
Otherwise, continue to
[
initiate the replication process
](
#step-3-initiate-the-replication-process
)
.
#### Enable tracking database on the secondary server
Geo secondary nodes use a tracking database to keep track of replication status and recover
automatically from some replication issues.
It is added in GitLab 9.1, and since GitLab 10.0 it is required.
> **IMPORTANT:** For this feature to work correctly, all nodes must be
with their clocks synchronized. It is not required for all nodes to be set to
the same time zone, but when the respective times are converted to UTC time,
the clocks must be synchronized to within 60 seconds of each other.
1.
[
Reconfigure GitLab
][]
for the changes to take effect.
1.
Setup clock synchronization service in your Linux distro.
This can easily be done via any NTP-compatible daemon. For example,
here are
[
instructions for setting up NTP with Ubuntu
](
https://help.ubuntu.com/lts/serverguide/NTP.html
)
.
1.
Edit
`/etc/gitlab/gitlab.rb`
and add the following:
```ruby
geo_postgresql['enable'] = true
```
1.
Set up the Geo tracking database:
```
sudo gitlab-rake geo:db:migrate
```
1.
[
Reconfigure GitLab
][]
for the changes to take effect.
1.
Continue to
[
initiate the replication process
](
#step-3-initiate-the-replication-process
)
.
**IMPORTANT:** For Geo to work correctly, all nodes must be with their
clocks synchronized. It is not required for all nodes to be set to the
same time zone, but when the respective times are converted to UTC time,
the clocks must be synchronized to within 60 seconds of each other.
### Step 3. Initiate the replication process
...
...
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