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
This commit is contained in:
Clark Boylan 2021-09-21 08:32:15 -07:00
parent fc75255ea9
commit 522afa85cc

View File

@ -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 \\;" 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) }}' minute: '{{ 59 | random(seed=inventory_hostname) }}'
hour: '{{ 23 | random(seed=inventory_hostname) }}' hour: '{{ 23 | random(seed=inventory_hostname) }}'
weekday: '0' weekday: '*/2'
- name: Create db backup dest - name: Create db backup dest
file: file:
state: directory state: directory