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
1a26fa3d
Commit
1a26fa3d
authored
Mar 22, 2017
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Instructions to enable Tracking Database
parent
1c337f36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
doc/gitlab-geo/updating_the_geo_nodes.md
doc/gitlab-geo/updating_the_geo_nodes.md
+42
-0
No files found.
doc/gitlab-geo/updating_the_geo_nodes.md
View file @
1a26fa3d
...
...
@@ -143,4 +143,46 @@ everything is working correctly:
1.
Test the data replication by pushing code to the primary and see if it
is received by the secondaries
## Enable Tracking Database
Geo secondary nodes now can keep track of replication status and recover
automatically from some replication issues. To get this feature enabled
you need to activate the Tracking Database.
> **IMPORTANT:** For this feature to work correctly, all nodes must be
with their clocks synchronized. It's not required to set the same timezone,
but they can' be more than 60 seconds of difference from each other
considering UTC time.
1.
Setup clock synchronization service in your Linux distro.
This can easily be done via any NTP compatible daemon.
1.
Edit the /etc/gitlab/gitlab.rb:
```
geo_postgresql['enable'] = true
```
1.
Create
`database_geo.yml`
with the information of your secondary PostgreSQL
database. Note that GitLab will set up another database instance separate
from the primary, since this is where the secondary will track its internal
state:
```
sudo cp /opt/gitlab/embedded/service/gitlab-rails/config/database_geo.yml.postgresql /opt/gitlab/embedded/service/gitlab-rails/config/database_geo.yml
```
1.
Reconfigure GitLab:
```
sudo gitlab-ctl start
sudo gitlab-ctl reconfigure
```
1.
Set up the Geo tracking database:
```
sudo gitlab-rake geo:db:setup
```
[
update
]:
../update/README.md
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