Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Kyle Harding <kyle@balena.io>
  • Loading branch information
klutchell committed Jun 20, 2024
1 parent 0175b6d commit 2c33bf2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

balena deployment of self-hosted GitHub runners

Runners are deployed in two variants, `vm` and `container`, where `vm` is isolated and
safe to use on public repositories.
Runners are deployed in two variants, `vm` and `container`, where `vm` is isolated and safe to use on public repositories.

See [github-runner-vm](https://github.com/product-os/github-runner-vm) and [self-hosted-runners](https://github.com/product-os/self-hosted-runners) for image sources.

Expand All @@ -15,9 +14,4 @@ This means that the total vCPUs and memory allocated to the VMs can exceed the a
In order to make the most efficient use of host resources, we want to slightly overprovision the host hardware
so if/when all allocated resources are consumed by jobs (e.g. yocto) there would be minimal overlap that could lead to performance degredation.

We can use environment variables on the VM runners to automatically assign a fraction of the host resources to each VM.

So for 10 VMs in the compose stack, we could set `CPU_PERCENT=0.10` and `MEMORY_PERCENT=0.10` so each runner gets 1/10th of total resources.
Note that these shares are rounded up to the nearest power of 2 so they are already higher than the fraction provided.

See the [github-runner-vm](https://github.com/product-os/github-runner-vm) README for more.

0 comments on commit 2c33bf2

Please sign in to comment.