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
735496b6
Commit
735496b6
authored
Dec 13, 2021
by
John Cai
Committed by
Evan Read
Dec 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update track-repository docs with new replicate-repository flag
parent
650d6732
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
doc/administration/gitaly/recovery.md
doc/administration/gitaly/recovery.md
+5
-2
No files found.
doc/administration/gitaly/recovery.md
View file @
735496b6
...
...
@@ -371,12 +371,13 @@ sudo /opt/gitlab/embedded/bin/praefect -config /var/opt/gitlab/praefect/config.t
### Manually track repositories
> [Introduced](https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/5658) in GitLab 14.4.
> - [Introduced](https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/5658) in GitLab 14.4.
> - [Introduced](https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/5789) in GitLab 14.6, support for immediate replication.
The
`track-repository`
Praefect sub-command adds repositories on disk to the Praefect database to be tracked.
```
shell
sudo
/opt/gitlab/embedded/bin/praefect
-config
/var/opt/gitlab/praefect/config.toml track-repository
-virtual-storage
<virtual-storage>
-repository
<repository>
sudo
/opt/gitlab/embedded/bin/praefect
-config
/var/opt/gitlab/praefect/config.toml track-repository
-virtual-storage
<virtual-storage>
-repository
<repository>
-replicate-immediately
```
-
`-virtual-storage`
is the virtual storage the repository is located in. Virtual storages are configured in
`/etc/gitlab/gitlab.rb`
under
`praefect['virtual_storages]`
and looks like the following:
...
...
@@ -403,6 +404,8 @@ sudo /opt/gitlab/embedded/bin/praefect -config /var/opt/gitlab/praefect/config.t
-
`-authoritative-storage`
is the storage we want Praefect to treat as the primary. Required if
[
per-repository replication
](
praefect.md#configure-replication-factor
)
is set as the replication strategy.
-
`-replicate-immediately`
, available in GitLab 14.6 and later, causes the command to replicate the repository to its secondaries immediately.
Otherwise, replication jobs are scheduled for execution in the database and are picked up by a Praefect background process.
The command outputs:
...
...
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