diff options
author | Marcel Amirault <ravlen@gmail.com> | 2019-05-05 15:21:25 +0000 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2019-05-05 15:21:25 +0000 |
commit | f4a1dcbe2fc31eca55c11be90588465924019972 (patch) | |
tree | 0a8cb51ba7f55ebf2235f607ed94e4c8abf39f00 /doc/administration/raketasks/geo.md | |
parent | 9b06dffc719ff068ccb690d193e2bce17ef05fcc (diff) | |
download | gitlab-ce-f4a1dcbe2fc31eca55c11be90588465924019972.tar.gz |
Docs: Merge Misc EE doc/administration files and dirs to CE
Diffstat (limited to 'doc/administration/raketasks/geo.md')
-rw-r--r-- | doc/administration/raketasks/geo.md | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/doc/administration/raketasks/geo.md b/doc/administration/raketasks/geo.md new file mode 100644 index 00000000000..9f3b31442f3 --- /dev/null +++ b/doc/administration/raketasks/geo.md @@ -0,0 +1,57 @@ +# Geo Rake Tasks **[PREMIUM ONLY]** + +## Git housekeeping + +There are few tasks you can run to schedule a git housekeeping to start at the +next repository sync in a **Secondary node**: + +### Incremental Repack + +This is equivalent of running `git repack -d` on a _bare_ repository. + +**Omnibus Installation** + +``` +sudo gitlab-rake geo:git:housekeeping:incremental_repack +``` + +**Source Installation** + +```bash +sudo -u git -H bundle exec rake geo:git:housekeeping:incremental_repack RAILS_ENV=production +``` + +### Full Repack + +This is equivalent of running `git repack -d -A --pack-kept-objects` on a +_bare_ repository which will optionally, write a reachability bitmap index +when this is enabled in GitLab. + +**Omnibus Installation** + +``` +sudo gitlab-rake geo:git:housekeeping:full_repack +``` + +**Source Installation** + +```bash +sudo -u git -H bundle exec rake geo:git:housekeeping:full_repack RAILS_ENV=production +``` + +### GC + +This is equivalent of running `git gc` on a _bare_ repository, optionally writing +a reachability bitmap index when this is enabled in GitLab. + +**Omnibus Installation** + +``` +sudo gitlab-rake geo:git:housekeeping:gc +``` + +**Source Installation** + +```bash +sudo -u git -H bundle exec rake geo:git:housekeeping:gc RAILS_ENV=production +``` |