Skip to content

Commit

Permalink
Updated runs-on confguration
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru committed Feb 7, 2025
1 parent 1fe2c34 commit 89e3c29
Showing 1 changed file with 46 additions and 8 deletions.
54 changes: 46 additions & 8 deletions .github/runs-on.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# See https://runs-on.com/configuration/repo-config/

# This file is used to define the baseline runs-on configuration for the organization.

# See https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
# for comparison to GitHub hosted runners.
# The short story is that GitHub hosted PUBLIC runners generally have:
# 4 CPU, 16 GiB Ram, and 14 GB SSD disk
# While GitHub hosted PRIVATE runners generally have:
# 2 CPU, 7 GiB Ram, and 14 GB SSD disk

# Note that the sizes reflect that Cloud Posse does not do heavy lifting on the self-hosted runners.
# A Cloud Posse client might need much more CPU and Memory for their runners,
# for example if they were running Node.js, compiling source, processing video, or doing data analysis.

runners:
default: &default
image: ubuntu22-full-x64
Expand Down Expand Up @@ -85,21 +98,39 @@ runners:
common: *default
small: *default

medium:
default-amd64: *default
common-amd64: *default
small-amd64: *default

medium: &medium
<<: *default
cpu: [4, 32]
ram: [4, 64]
cpu: [2, 32]
ram: [8, 64]
tags:
- "gha-runner:runs-on/medium"

large:
medium-amd64: *medium

# This runner is used for running terraform commands
# Terraform is generally I/O bound and does not need a lot of CPU, but
# experience has shown that a single "apply" can easily exceed 4GB of memory.
terraform:
<<: *default
cpu: [2, 32]
ram: [8, 64]
tags:
- "gha-runner:runs-on/terraform"

large: &large
<<: *default
cpu: [8, 64]
ram: [12, 128]
cpu: [4, 64]
ram: [16, 128]
disk: large
tags:
- "gha-runner:runs-on/large"

large-amd64: *large

default-arm64: &default-arm64
<<: *default
image: ubuntu22-full-arm64
Expand Down Expand Up @@ -132,10 +163,17 @@ runners:
small-arm64: *default-arm64
packages-arm64: *default-arm64

medium-arm64:
<<: *default-arm64
cpu: [2, 32]
ram: [8, 64]
tags:
- "gha-runner:runs-on/medium-arm64"

large-arm64:
<<: *default-arm64
cpu: [8, 64]
ram: [12, 128]
cpu: [4, 64]
ram: [16, 128]
disk: large
tags:
- "gha-runner:runs-on/large-arm64"
Expand Down

0 comments on commit 89e3c29

Please sign in to comment.