debian-mirror-gitlab/doc/administration/raketasks/praefect.md

33 lines
952 B
Markdown
Raw Normal View History

2020-07-28 23:09:34 +05:30
---
stage: Create
group: Gitaly
2021-02-22 17:27:13 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2020-07-28 23:09:34 +05:30
type: reference
---
# Praefect Rake tasks **(CORE ONLY)**
2020-04-22 19:07:51 +05:30
> [Introduced]( https://gitlab.com/gitlab-org/gitlab/-/merge_requests/28369) in GitLab 12.10.
2020-07-28 23:09:34 +05:30
Rake tasks are available for projects that have been created on Praefect storage. See the
[Praefect documentation](../gitaly/praefect.md) for information on configuring Praefect.
2020-04-22 19:07:51 +05:30
## Replica checksums
2020-07-28 23:09:34 +05:30
`gitlab:praefect:replicas` prints out checksums of the repository of a given `project_id` on:
2020-04-22 19:07:51 +05:30
2020-07-28 23:09:34 +05:30
- The primary Gitaly node.
- Secondary internal Gitaly nodes.
2020-04-22 19:07:51 +05:30
**Omnibus Installation**
```shell
sudo gitlab-rake "gitlab:praefect:replicas[project_id]"
```
**Source Installation**
```shell
sudo -u git -H bundle exec rake "gitlab:praefect:replicas[project_id]" RAILS_ENV=production
```