Skip to content

Guides / Choose a runner size

Choose a runner size

Every job names a runner template with runs-on. The template sets the CPU architecture, the vCPUs and the memory. Price follows the vCPUs, so a bigger machine costs more per minute and may cost less per job.

  • A config with at least one job.
  1. ubuntu-latest has 2 vCPUs and 8 GiB on x86-64, at $0.004 a minute. Start every job there:

    .hatchrun/config.yml
    jobs:
    test:
    runs-on: ubuntu-latest
    steps:
    - run: make test
  2. Builds and test suites that use every core get faster with more of them. On amd64, double the vCPUs and the price per minute doubles. Arm steps up by a little less each time, so check the table:

    .hatchrun/config.yml
    jobs:
    build:
    runs-on: ubuntu-26.04-8core
    steps:
    - run: cargo build --release

    Jobs are billed per second, with a 60-second minimum, so a job that ends in 20 seconds costs the same as one that runs for 60.

    If the job takes half as long, it costs the same on amd64, a little less on Arm, and you wait half as long. This holds only when both runs last longer than the 60-second minimum: a 100-second job on ubuntu-latest costs $0.0067, but the same job at 50 seconds on ubuntu-26.04-4core is billed for 60 seconds and costs $0.008. If it takes as long as before, the job is not using the cores; move it back.

  3. .hatchrun/config.yml
    executors:
    big:
    runs-on: ubuntu-26.04-8core
    jobs:
    build:
    executor: big
    steps:
    - run: cargo build --release
    test:
    executor: big
    steps:
    - run: cargo test
  4. Every size has an Arm template ending in -arm, at a lower price. Arm suits code that builds for Arm, or that has no x86-only dependencies:

    .hatchrun/config.yml
    jobs:
    test:
    runs-on: ubuntu-26.04-arm
    steps:
    - run: make test
  5. Terminal window
    hatchrun validate

    A label that names no template is an error, and the message lists the labels that work.

runs-on Arch vCPU Memory Per minute
ubuntu-latest, ubuntu-26.04 amd64 2 8 GiB $0.004
ubuntu-26.04-arm arm64 2 8 GiB $0.0035
ubuntu-26.04-4core amd64 4 16 GiB $0.008
ubuntu-26.04-4core-arm arm64 4 16 GiB $0.0065
ubuntu-26.04-8core amd64 8 32 GiB $0.016
ubuntu-26.04-8core-arm arm64 8 32 GiB $0.012
ubuntu-26.04-16core amd64 16 64 GiB $0.032
ubuntu-26.04-16core-arm arm64 16 64 GiB $0.023

See Runner templates and pricing.