Help us learn about your current experience with the documentation. Take the survey.
Praefect Rake 任务
- 版本:免费版、专业版、旗舰版
- 产品:GitLab 自管版
您可以为存储在 Praefect 上的项目使用 Rake 任务。有关配置 Praefect 的信息,请参阅 Praefect 文档。
副本校验和
gitlab:praefect:replicas 会输出指定 project_id 的仓库在以下位置的校验和:
- 主 Gitaly 节点。
- 内部辅助 Gitaly 节点。
请在安装了 GitLab 的节点上运行此 Rake 任务,而不是在安装了 Praefect 的节点上运行。
-
Linux 软件包安装:
sudo gitlab-rake "gitlab:praefect:replicas[project_id]" -
自行编译安装:
sudo -u git -H bundle exec rake "gitlab:praefect:replicas[project_id]" RAILS_ENV=production