520.md 922 字节
Newer Older
Lab机器人's avatar
readme  
Lab机器人 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
# Praefect Rake tasks

> 原文:[https://docs.gitlab.com/ee/administration/raketasks/praefect.html](https://docs.gitlab.com/ee/administration/raketasks/praefect.html)

*   [Replica checksums](#replica-checksums)

# Praefect Rake tasks[](#praefect-rake-tasks-core-only "Permalink")

在 GitLab 12.10 中[引入](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/28369) .

瑞克任务可用于在 Praefect 存储上创建的项目. 有关配置 Praefect 的信息,请参见[Praefect 文档](../gitaly/praefect.html) .

## Replica checksums[](#replica-checksums "Permalink")

`gitlab:praefect:replicas`打印给定`project_id`的存储库的校验和:

*   主要的 Gitaly 节点.
*   次要内部 Gitaly 节点.

**全部安装**

```
sudo gitlab-rake "gitlab:praefect:replicas[project_id]" 
```

**源安装**

```
sudo -u git -H bundle exec rake "gitlab:praefect:replicas[project_id]" RAILS_ENV=production 
```