# 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 
```