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
0e21a2de
Commit
0e21a2de
authored
Feb 06, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more details to clarify GitLab Geo installation
[ci skip]
parent
edacfbf8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
4 deletions
+28
-4
doc/gitlab-geo/configuration.md
doc/gitlab-geo/configuration.md
+2
-2
doc/gitlab-geo/database.md
doc/gitlab-geo/database.md
+26
-2
No files found.
doc/gitlab-geo/configuration.md
View file @
0e21a2de
...
...
@@ -139,10 +139,10 @@ sensitive data in the database. Any secondary node must have the
```
# Omnibus GitLab installations
cat /etc/gitlab/gitlab-secrets.json
cat /etc/gitlab/gitlab-secrets.json
| grep db_key_base
# Installations from source
cat /home/git/gitlab/config/secrets.yml
cat /home/git/gitlab/config/secrets.yml
| grep db_key_base
```
1.
SSH into the
**secondary**
node and login as root:
...
...
doc/gitlab-geo/database.md
View file @
0e21a2de
...
...
@@ -76,8 +76,28 @@ The following guide assumes that:
```
Where `1.2.3.4` is the public IP address of the primary server, and `5.6.7.8`
the public IP address of the secondary one. If you want to add another
secondary, the relevant setting would look like:
the public IP address of the secondary one.
For security reasons, PostgreSQL by default only listens on the local
interface (e.g. 127.0.0.1). However, GitLab Geo needs to communicate
between the primary and secondary nodes over a common network, such as a
corporate LAN or the public Internet.
The `listen_address` option opens PostgreSQL up to external connections with the
specifying. See [the PostgreSQL documentation](https://www.postgresql.org/docs/9.6/static/runtime-config-connection.html)
for more details.
Note that if you are running GitLab Geo with a cloud provider (e.g. Amazon
Web Services), the internal interface IP (as provided by `ifconfig`) may
be different from the public IP address. For example, suppose you have a
node with the following configuration:
*
Internal IP: 10.1.5.3
*
External IP: 54.193.124.100
In this case, use the internal IP for the PostgreSQL configuration above.
If you want to add another secondary, the relevant setting would look like:
```ruby
postgresql['md5_auth_cidr_addresses'] = ['5.6.7.8/32','11.22.33.44/32']
...
...
@@ -85,6 +105,8 @@ The following guide assumes that:
Edit the `wal` values as you see fit.
1.
Check to make sure your firewall rules are set so that the secondary nodes
can access port 5432 on the primary node.
1.
Save the file and
[
reconfigure GitLab
][]
for the changes to take effect.
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
...
...
@@ -119,6 +141,8 @@ The following guide assumes that:
hot_standby = on
```
See the Omnibus notes above for more details of `listen_address`.
Edit the `wal` values as you see fit.
1.
Set the access control on the primary to allow TCP connections using the
...
...
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