Skip to content

Commit

Permalink
docs: add steps to increase I/O limit in self-hosted runners
Browse files Browse the repository at this point in the history
Signed-off-by: Manan Gupta <manan@planetscale.com>
  • Loading branch information
GuptaManan100 committed Jan 22, 2022
1 parent 9d2b187 commit 0d240e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions GITHUB_SELF_HOSTED_RUNNERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ access to Vitess.
8. Set up a cron job to remove docker volumes and images every week
1. `crontab -e`
2. Within the file add a line `8 5 * * 6 docker system prune -f --volumes --all`
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.
To fix this we increase the default limit on the self-hosted runners by -
1. To set the aio-max-nr value, add the following line to the /etc/sysctl.conf file:
1. `fs.aio-max-nr = 1048576`
2. To activate the new setting, run the following command:
1. `sysctl -p /etc/sysctl.conf`

### Moving a test to a self-hosted runner
Most of the code for running the tests is generated code by `make generate_ci_workflows` which uses the file `ci_workflow_gen.go`
Expand Down

0 comments on commit 0d240e1

Please sign in to comment.