Docs / Runners and billing
On this page
Runners
Every Kajiya job runs on its own freshly booted virtual machine in Seoul, South Korea, and the VM is destroyed when the job ends. This page lists the labels, what the VM contains, and the limits it runs under.
Labels and sizes#
Set runs-on to one label. All sizes cost the same $0.0045 per vCPU-hour.
| Label | vCPU | RAM | Disk | Per minute | Per hour |
|---|---|---|---|---|---|
kajiya-2 | 2 | 4 GB | 30 GB | $0.00015 | $0.0090 |
kajiya-4 | 4 | 8 GB | 30 GB | $0.00030 | $0.0180 |
kajiya-8 | 8 | 16 GB | 30 GB | $0.00060 | $0.0360 |
jobs:
build:
runs-on: kajiya-4Use the Kajiya label on its own. Do not add self-hosted, linux or other labels: the one-time runner Kajiya registers carries the Kajiya label, and GitHub only assigns a job to a runner that has every label the job asks for. Labels are case-insensitive. Sizes other than 2, 4 and 8 (for example kajiya-16) are not Kajiya labels, so Kajiya ignores those jobs.
Tier pins#
Machines in the fleet are graded into tiers by a single-thread benchmark (SHA-256 throughput on one core, in MB/s). Every tier costs the same.
| Tier | Minimum single-thread score | Pin label (2 vCPU) |
|---|---|---|
| S | 1,800 | kajiya-2-s |
| A | 1,200 | kajiya-2-a |
| B | 700 | kajiya-2-b |
| C | none (every machine) | kajiya-2-c |
Without a pin, a job goes to any machine with room, and Kajiya fills lower tiers first. To require a tier, add it to the label: kajiya-<vcpu>-<tier>, for example kajiya-4-s or kajiya-8-a. A pinned job waits (reason no_host) for as long as no machine of that tier has room, so pin only jobs that need fast single cores. The set of tiers online changes with the fleet.
The virtual machine#
- Hypervisor: KVM. The VM's CPU is passed through from the host (
host-passthrough), so the guest sees the host's CPU model and instruction set extensions. The current fleet is AMD EPYC. - Memory: 2 GB per vCPU, not shared with other jobs.
- Disk: a 30 GB virtual disk, copy-on-write over the base image. The operating system and tools take part of it.
- OS: Ubuntu 24.04 LTS (x86_64) cloud image.
- User: jobs run as
runner, which has passwordlesssudoand is in thedockergroup. You own the VM for the length of the job. - Runner: GitHub Actions runner 2.338.2 in
/opt/actions-runner; the workspace is/opt/actions-runner/_work. - Boot: about 40 seconds from the start of the VM to the runner taking the job. Boot time is part of the billed time.
Only Linux on x86_64 is available. There are no Windows, macOS or Arm runners.
Preinstalled software#
The base image is the Ubuntu 24.04 cloud image plus these packages and nothing else: git, curl, jq, unzip, zip, build-essential, docker.io, ca-certificates, python3, python3-pip. The GitHub Actions runner and its dependencies are installed, and Docker Engine (Ubuntu's docker.io) starts at boot.
This is a much smaller image than GitHub's ubuntu-latest. Install what else you need in the workflow:
| You need | Do this |
|---|---|
| Node.js, Python, Go, Java, .NET, Ruby | actions/setup-node, actions/setup-python, actions/setup-go, actions/setup-java, actions/setup-dotnet, ruby/setup-ruby |
| Docker Buildx | docker/setup-buildx-action |
| Docker Compose | sudo apt-get update && sudo apt-get install -y docker-compose-v2 |
GitHub CLI (gh) | sudo apt-get update && sudo apt-get install -y gh |
| Other Ubuntu packages | sudo apt-get update && sudo apt-get install -y <package> |
JavaScript actions (uses: actions/...) work without installing Node.js, because the runner brings its own. Container jobs (container:) and service containers (services:) run on the preinstalled Docker Engine.
Ubuntu 24.04 marks the system Python as externally managed, so a bare pip install fails. Use actions/setup-python, or create a virtual environment with python3 -m venv .venv.
Network#
- Outbound: the internet, over a shared uplink in Seoul under fair use. VMs have no public address; nothing can connect in.
- Blocked destinations: private and internal ranges
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,100.64.0.0/10,169.254.0.0/16, except DNS and DHCP from the VM's own gateway. A job cannot reach Kajiya's internal network, other job VMs, or overlay networks that use the100.64.0.0/10range (Tailscale, for example). - Blocked ports: outbound TCP to ports 3333, 4444, 5555, 7777, 8888, 9999, 14433, 14444, 45700 is dropped for every destination, because those are common cryptocurrency mining pool ports. A test that calls an outside service on one of these ports will time out. Traffic inside the VM (localhost, Docker networks) is not affected.
- Egress address: jobs reach the internet from the address of the machine that runs them. Kajiya does not publish a fixed list of egress IP addresses.
Time limits#
- 58-minute stop. The runner is stopped after 58 minutes and the VM powers off, so the job does not complete on GitHub. The VM itself has a hard cap of 60 minutes. Split longer work into several jobs: see Matrix builds and sharding.
- 4-minute idle stop. A VM whose runner is not given a job within 4 minutes of starting stops itself and powers off. This happens when the job was cancelled on GitHub while its VM was booting, or when GitHub gave that job to another runner. The VM is billed for the minutes it ran, like any job.
- Queue time on GitHub. GitHub fails a job that waits for a self-hosted runner for more than 24 hours. Jobs that wait for Kajiya (see wait reasons) are subject to that GitHub limit.
One VM per job#
- A job with a Kajiya label is queued on GitHub.
- Kajiya checks your limits, caps and prepaid compute, picks a machine, and asks GitHub for a just-in-time runner registration named
kajiya-<GitHub job id>(-2,-3and so on are added if the job has to be dispatched again because its first machine never started it). The registration works once. - The machine boots a new VM from the base image with a fresh copy-on-write disk and hands the registration to the runner.
- The runner takes one job, runs it, and the VM powers off.
- The VM and its disk are destroyed. Nothing is reused by the next job, yours or anyone else's.
GitHub assigns queued jobs to runners by label. When several jobs with the same label are queued in one repository, the runner Kajiya started for one of them may run another; every queued job still gets its own VM.
Job states in Kajiya#
| State | Meaning | Billed |
|---|---|---|
reserved | A machine was chosen and Kajiya is registering the runner with GitHub | No |
dispatched | The runner is registered and the machine is starting the VM | No |
running | The VM is running; the billing clock started when it booted | Yes, from VM start |
done | The VM powered off and the job was billed | Yes |
failed | The VM never started, or the job was released before a machine took it | No |
done means the VM finished, not that your workflow succeeded: the result of the job is on GitHub.