From 522afa85cc1a9c570fe20c33ac0f769cffaa8335 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 21 Sep 2021 08:32:15 -0700 Subject: [PATCH] GC/pack gitea repos every other day Previously we were doing this weekly. Gerrit does this daily. "Split" the difference and do gitea every other day. We have noticed that replication to gitea can be slow at times. One idea is that the less packed repos on the gitea side may make negotiating the updates slower. Pack more often to see if this helps. Change-Id: I8961007dce3e448bfdbf1c5f3e8dfc5ec8eb82fb --- playbooks/roles/gitea/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/gitea/tasks/main.yaml b/playbooks/roles/gitea/tasks/main.yaml index 5fc4b96a62..776ff8a367 100644 --- a/playbooks/roles/gitea/tasks/main.yaml +++ b/playbooks/roles/gitea/tasks/main.yaml @@ -160,7 +160,7 @@ job: "docker exec -t gitea-docker_gitea-web_1 find /data/git/repositories/ -maxdepth 2 -name *.git -type d -execdir git --git-dir={} gc --quiet \\;" minute: '{{ 59 | random(seed=inventory_hostname) }}' hour: '{{ 23 | random(seed=inventory_hostname) }}' - weekday: '0' + weekday: '*/2' - name: Create db backup dest file: state: directory