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
2979c705
Commit
2979c705
authored
Mar 17, 2021
by
Evan Read
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve Gitaly Cluster documentation
parent
babc2fe7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
15 deletions
+39
-15
doc/administration/gitaly/praefect.md
doc/administration/gitaly/praefect.md
+39
-15
No files found.
doc/administration/gitaly/praefect.md
View file @
2979c705
...
@@ -227,6 +227,9 @@ with secure tokens as you complete the setup process.
...
@@ -227,6 +227,9 @@ with secure tokens as you complete the setup process.
We note in the instructions below where these secrets are required.
We note in the instructions below where these secrets are required.
NOTE:
Omnibus GitLab installations can use
`gitlab-secrets.json`
.
### PostgreSQL
### PostgreSQL
NOTE:
NOTE:
...
@@ -236,10 +239,11 @@ database on the same PostgreSQL server if using
...
@@ -236,10 +239,11 @@ database on the same PostgreSQL server if using
of GitLab and should not be replicated.
of GitLab and should not be replicated.
These instructions help set up a single PostgreSQL database, which creates a single point of
These instructions help set up a single PostgreSQL database, which creates a single point of
failure.
For greater fault tolerance, t
he following options are available:
failure.
T
he following options are available:
-
For non-Geo installations, use one of the fault-tolerant
-
For non-Geo installations, either:
[
PostgreSQL setups
](
../postgresql/index.md
)
.
-
Use one of the documented
[
PostgreSQL setups
](
../postgresql/index.md
)
.
-
Use your own third-party database setup, if fault tolerance is required.
-
For Geo instances, either:
-
For Geo instances, either:
-
Set up a separate
[
PostgreSQL instance
](
https://www.postgresql.org/docs/11/high-availability.html
)
.
-
Set up a separate
[
PostgreSQL instance
](
https://www.postgresql.org/docs/11/high-availability.html
)
.
-
Use a cloud-managed PostgreSQL service. AWS
-
Use a cloud-managed PostgreSQL service. AWS
...
@@ -755,14 +759,26 @@ documentation](configure_gitaly.md#configure-gitaly-servers).
...
@@ -755,14 +759,26 @@ documentation](configure_gitaly.md#configure-gitaly-servers).
gitaly
[
'auth_token'
]
=
'PRAEFECT_INTERNAL_TOKEN'
gitaly
[
'auth_token'
]
=
'PRAEFECT_INTERNAL_TOKEN'
```
```
1.
Configure the GitLab Shell
`secret_token`
, and
`internal_api_url`
which are
1.
Configure the GitLab Shell secret token, which is needed for
`git push`
operations. Either:
needed for
`git push`
operations.
If you have already configured
[
Gitaly on its own server
](
index.md
)
-
Method 1:
```
ruby
1. Copy `/etc/gitlab/gitlab-secrets.json` from the Gitaly client to same path on the Gitaly
gitlab_shell
[
'secret_token'
]
=
'GITLAB_SHELL_SECRET_TOKEN'
servers and any other Gitaly clients.
1. [Reconfigure GitLab](../restart_gitlab.md#omnibus-gitlab-reconfigure) on Gitaly servers.
-
Method 2:
1. Edit `/etc/gitlab/gitlab.rb`.
1. Replace `GITLAB_SHELL_SECRET_TOKEN` with the real secret.
```ruby
gitlab_shell['secret_token'] = 'GITLAB_SHELL_SECRET_TOKEN'
```
1.
Configure and
`internal_api_url`
, which is also needed for
`git push`
operations:
```
ruby
# Configure the gitlab-shell API callback URL. Without this, `git push` will
# Configure the gitlab-shell API callback URL. Without this, `git push` will
# fail. This can be your front door GitLab URL or an internal load balancer.
# fail. This can be your front door GitLab URL or an internal load balancer.
# Examples: 'https://gitlab.example.com', 'http://1.2.3.4'
# Examples: 'https://gitlab.example.com', 'http://1.2.3.4'
...
@@ -914,15 +930,23 @@ Particular attention should be shown to:
...
@@ -914,15 +930,23 @@ Particular attention should be shown to:
})
})
```
```
1.
Configure the
`gitlab_shell['secret_token']`
so that callbacks from Gitaly
1.
Configure the GitLab Shell secret token so that callbacks from Gitaly nodes during a
`git push`
nodes during a
`git push`
are properly authenticated by editing
are properly authenticated. Either:
`/etc/gitlab/gitlab.rb`
:
You need to replace
`GITLAB_SHELL_SECRET_TOKEN`
with the real secret.
-
Method 1:
```
ruby
1. Copy `/etc/gitlab/gitlab-secrets.json` from the Gitaly client to same path on the Gitaly
gitlab_shell
[
'secret_token'
]
=
'GITLAB_SHELL_SECRET_TOKEN'
servers and any other Gitaly clients.
```
1. [Reconfigure GitLab](../restart_gitlab.md#omnibus-gitlab-reconfigure) on Gitaly servers.
-
Method 2:
1. Edit `/etc/gitlab/gitlab.rb`.
1. Replace `GITLAB_SHELL_SECRET_TOKEN` with the real secret.
```ruby
gitlab_shell['secret_token'] = 'GITLAB_SHELL_SECRET_TOKEN'
```
1.
Add Prometheus monitoring settings by editing
`/etc/gitlab/gitlab.rb`
. If Prometheus
1.
Add Prometheus monitoring settings by editing
`/etc/gitlab/gitlab.rb`
. If Prometheus
is enabled on a different node, make edits on that node instead.
is enabled on a different node, make edits on that node instead.
...
...
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