Geo Rake Tasks

原文:https://docs.gitlab.com/ee/administration/raketasks/geo.html

Geo Rake Tasks

以下 Rake 任务适用于Geo 安装 .

Git housekeeping

您可以执行一些任务来调度 Git 内务处理,以从辅助节点中的下一个存储库同步开始:

Incremental Repack

这等效于在仓库上运行git repack -d .

全部安装

sudo gitlab-rake geo:git:housekeeping:incremental_repack 

源安装

sudo -u git -H bundle exec rake geo:git:housekeeping:incremental_repack RAILS_ENV=production 

Full Repack

这等效于在仓库上运行git repack -d -A --pack-kept-objects ,可以选择在 GitLab 中启用它时写入可达性位图索引.

全部安装

sudo gitlab-rake geo:git:housekeeping:full_repack 

源安装

sudo -u git -H bundle exec rake geo:git:housekeeping:full_repack RAILS_ENV=production 

GC

这等效于在仓库上运行git gc ,如果在 GitLab 中启用了此功能,则可以选择编写可达性位图索引.

全部安装

sudo gitlab-rake geo:git:housekeeping:gc 

源安装

sudo -u git -H bundle exec rake geo:git:housekeeping:gc RAILS_ENV=production 

Remove orphaned project registries

在某些情况下,您的项目注册表可能包含过时的记录,您可以使用 Rake 任务geo:run_orphaned_project_registry_cleaner删除它们:

全部安装

sudo gitlab-rake geo:run_orphaned_project_registry_cleaner 

源安装

sudo -u git -H bundle exec rake geo:run_orphaned_project_registry_cleaner RAILS_ENV=production 
Copyright © 温玉 2021 | 浙ICP备2020032454号 all right reserved,powered by Gitbook该文件修订时间: 2021-03-27 13:48:25

results matching ""

    No results matching ""