Skip to content

Commit 380cbdf

Browse files
authored
Prune docker storage every other weekday
We recently ran out of storage on the overlay filesystem on the runner. Signed-off-by: Matt Lord <[email protected]>
1 parent 770e06f commit 380cbdf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

GITHUB_SELF_HOSTED_RUNNERS.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ access to Vitess.
2222
3. `tar xzf ./actions-runner-linux-x64-2.280.3.tar.gz`
2323
4. `./config.sh --url https://github.com/vitessio/vitess --token <token> --name github-runner-<num>`
2424
5. With a screen execute `./run.sh`
25-
8. Set up a cron job to remove docker volumes and images every week
25+
8. Set up a cron job to remove docker volumes and images every other weekday
2626
1. `crontab -e`
27-
2. Within the file add a line `8 5 * * 6 docker system prune -f --volumes --all`
27+
2. Within the file add a line `0 5 * * 1,3,5 docker system prune -f --volumes --all`
2828
9. Vtorc, Cluster 14 and some other tests use multiple MySQL instances which are all brought up with asynchronous I/O setup in InnoDB. This sometimes leads to us hitting the Linux asynchronous I/O limit.
2929
To fix this we increase the default limit on the self-hosted runners by -
3030
1. To set the aio-max-nr value, add the following line to the /etc/sysctl.conf file:
@@ -70,4 +70,4 @@ with the future runs as well.
7070
The logs will be stored in the `savedRuns` directory and can be copied locally via `scp`.
7171

7272
A cronjob is already setup to empty the `savedRuns` directory every week so please download the runs
73-
before they are deleted.
73+
before they are deleted.

0 commit comments

Comments
 (0)