Warm pools and scaling
A runner group scales in one of two ways:
| Mode | What runs | Who decides |
|---|---|---|
Warm pool (config.warm_pool.enabled=true) | Long-lived runners that take job after job, reset in between | A controller that ticks every couple of minutes and converges the pool |
| Per job (the default) | One fresh runner per queued GitHub job, stopped after it | The workflow_job webhook, with runner.backlog-redrive to close gaps and reap idle runners |
Both are bounded by the group's min_count and max_count. A launch past max_count is refused, not queued.
Which kinds have a warm pool
| Kind | Warm pool | Notes |
|---|---|---|
fargate | Yes | Rotation by job count does not apply to tasks |
ec2_vm | Yes | Disk-pressure drain and job-count rotation |
azure_vm | Yes | Fresh runner container per job; disk drain needs config.host_agent |
gce | Partial | The controller tracks VMs but does not delete them yet |
kubernetes | Hosted groups only | Groups on your own cluster scale by replicas or Jobs instead |
| Every other kind | No | The config is accepted and ignored |
Browser groups have no pool: each seat starts on lease.
Config
Set the keys under config.warm_pool (in Cockpit: the group's Settings → Config; by API: runner.group-update). Every key is optional.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Turn the warm pool on |
min_warm_idle | 0 | Runners kept idle and ready |
max_jobs_per_instance | 50 | Replace a runner after this many jobs. 0 = never |
max_age_minutes | 360 | Replace a runner after this age. 0 = never. At least provisioning_timeout_seconds / 60 |
idle_ttl_minutes | 30 | Stop a runner idle this long, above min_warm_idle. 0 = never |
disk_pct_threshold | 80 | Drain a runner whose disk is fuller than this. Up to 95, or 0 to turn off |
drain_timeout_minutes | twice config.job_timeout_seconds, else 120 | A draining runner that GitHub still reports busy, with no job Orkestia knows of, is reaped after this long. 0 = wait forever |
max_launches_per_tick | the kind's default (4 on azure_vm) | How many runners one controller tick may start. 1 to 16 |
heartbeat_timeout_seconds | 300 | A runner silent this long is marked failed. At least 60 |
provisioning_timeout_seconds | 600 | A runner not ready after this long is marked failed. At least 120 |
hygiene_strategy | strict | Reset between jobs: strict, fast, or custom (needs a hook URL) |
hygiene_failure_action | terminate | When a reset fails: terminate the runner or mark_degraded |
pre_job_hook_url / post_job_hook_url | none | Your own reset hooks, for custom |
preserve_caches | [] | Paths kept between jobs. Unsafe roots are refused |
isolation_required | false | One job per runner, always. Cannot be combined with enabled=true |
drain_max_concurrent | 2 | How many runners are drained at a time when the pool is turned off |
{
"warm_pool": {
"enabled": true,
"min_warm_idle": 2,
"max_jobs_per_instance": 20,
"idle_ttl_minutes": 15
}
}
min_count and max_count stay group fields, next to config.
Between jobs
On a warm runner, the reset hooks run after every job: they remove the job's work directory, containers, volumes, images and build cache, except the paths in preserve_caches. On azure_vm, each job also gets a fresh runner container on the same VM, and three quick failures in a row retire the VM.
A runner that GitHub still reports busy is never terminated for rotation or drain: it is kept (deferred_busy) until the job ends.
data.runner.get-execution returns warm_jobs for a warm runner: how many jobs it served, the last GitHub job and its conclusion, and its last 25 jobs.
Turning a warm pool off
Set enabled to false. Runners are drained a few at a time (drain_max_concurrent), min_warm_idle runners keep serving until their turn, and the rest are reported as drain_deferred until a later pass.
Groups without a warm pool
Each workflow_job: queued webhook launches one runner. GitHub gives a new runner the oldest queued job its labels match, not the one it was launched for, so runner.backlog-redrive re-counts queued jobs against live runners and launches what is missing. It also:
- stops a runner that is idle after 8 minutes, keeping the youngest
min_count; - stops a surplus idle runner after 2 minutes when nothing this group can take is queued;
- does not relaunch, for 6 hours, a job whose runner was reaped idle (labels that no runner of this group matches);
- does not launch a second runner for a job whose own runner is still booting;
- gates per GitHub run: a run that already has jobs working on the group counts at most that many of its queued jobs as demand. A serial run (
max-parallel: 1, or a chain ofneeds) gets one runner ready for its next job, not one per queued sibling. A run with nothing working yet still gets a runner per job.
See also
- Runner groups — every kind and what it supports
- Runner management — create, size and delete a group
Browser groups and cloud seats
purpose=browser — runner groups that hold cloud Chromium seats for agents, on Orkestia's cluster or in your App Host site, with logins that survive and approvals for every send
App GitHub runners (add-on)
The github-runner App Host add-on — one managed GitHub Actions runner pool per app, either shared (each job in its own isolated machine, Docker included) or dedicated (the pool's own Azure VMs), with labels, status and usage
