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.
We note in the instructions below where these secrets are required.
NOTE:
Omnibus GitLab installations can use
`gitlab-secrets.json`
.
### PostgreSQL
NOTE:
...
...
@@ -236,10 +239,11 @@ database on the same PostgreSQL server if using
of GitLab and should not be replicated.
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
[
PostgreSQL setups
](
../postgresql/index.md
)
.
-
For non-Geo installations, either:
-
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:
-
Set up a separate
[
PostgreSQL instance
](
https://www.postgresql.org/docs/11/high-availability.html
)
.
-
Use a cloud-managed PostgreSQL service. AWS
...
...
@@ -755,14 +759,26 @@ documentation](configure_gitaly.md#configure-gitaly-servers).
gitaly
[
'auth_token'
]
=
'PRAEFECT_INTERNAL_TOKEN'
```
1.
Configure the GitLab Shell
`secret_token`
, and
`internal_api_url`
which are
needed for
`git push`
operations.
1.
Configure the GitLab Shell secret token, which is needed for
`git push`
operations. Either:
If you have already configured
[
Gitaly on its own server
](
index.md
)
-
Method 1:
```
ruby
gitlab_shell
[
'secret_token'
]
=
'GITLAB_SHELL_SECRET_TOKEN'
1. Copy `/etc/gitlab/gitlab-secrets.json` from the Gitaly client to same path on the Gitaly
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
# fail. This can be your front door GitLab URL or an internal load balancer.
# Examples: 'https://gitlab.example.com', 'http://1.2.3.4'
...
...
@@ -914,15 +930,23 @@ Particular attention should be shown to:
})
```
1.
Configure the
`gitlab_shell['secret_token']`
so that callbacks from Gitaly
nodes during a
`git push`
are properly authenticated by editing
`/etc/gitlab/gitlab.rb`
:
1.
Configure the GitLab Shell secret token so that callbacks from Gitaly nodes during a
`git push`
are properly authenticated. Either:
You need to replace
`GITLAB_SHELL_SECRET_TOKEN`
with the real secret.
-
Method 1:
```
ruby
gitlab_shell
[
'secret_token'
]
=
'GITLAB_SHELL_SECRET_TOKEN'
```
1. Copy `/etc/gitlab/gitlab-secrets.json` from the Gitaly client to same path on the Gitaly
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
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