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.
Prerequisites
Section titled “Prerequisites”- A config with at least one job.
-
Start on the smallest template
Section titled “Start on the smallest template”ubuntu-latesthas 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-lateststeps:- run: make test -
Move slow, parallel jobs up
Section titled “Move slow, parallel jobs up”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-8coresteps:- run: cargo build --releaseJobs 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-latestcosts $0.0067, but the same job at 50 seconds onubuntu-26.04-4coreis 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. -
Name shared sizes with an executor
Section titled “Name shared sizes with an executor”.hatchrun/config.yml executors:big:runs-on: ubuntu-26.04-8corejobs:build:executor: bigsteps:- run: cargo build --releasetest:executor: bigsteps:- run: cargo test -
Try Arm
Section titled “Try Arm”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-armsteps:- run: make test -
Validate
Section titled “Validate”Terminal window hatchrun validateA label that names no template is an error, and the message lists the labels that work.
The templates
Section titled “The templates”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.