Help / Right-size your runners
Right-size your runners
A job on a runner that is too big pays for idle cores; one that is too small runs slower than it should. The console measures CPU and memory inside every job's VM and turns that into a size worth testing for each job. There are three ways to act on it, from manual to automatic.
1. The Optimize page
Optimize lists each workflow job with its runs, median run time, CPU p95 and memory peak over the last 7, 30 or 90 days, the runner it uses now, and a suggestion:
- Try smaller: the job would fit the next size down with room to spare. The page shows about how much less a month that is at today's run times.
- Try bigger: the job is CPU-bound and may finish sooner. The page shows how much faster it must run for the larger size to charge the same.
- More memory: the job came close to running out; a high-memory class of the same vCPU count is safer.
- Keep: sized about right.
A suggestion is a size worth testing, not a promise. After the job's next runs on the new size, its run time and CPU show here under that size, so you can see whether the move paid off.

2. Open a pull request from the page
- Pick one repository in the filter, then tick the jobs to move.
- Choose where they go: their suggested size, or self-sizing when it is on for your account.
- Optionally let the same pull request turn on the dependency cache of the jobs' setup steps (Node, Python, Java, uv, Ruby) when the repository's lock files name its package manager, and bake the apt packages the jobs install into a repository image so their runs skip
apt-get install. - Press Open pull request. You need write access to the repository. We change the
runs-online of each ticked job and open one pull request for you to review. Nothing changes until you merge it.
Each moved label gets a /key= part, so every job of a run has its own runner and its measurements stay its own. We only edit lines we can change safely. A job whose label comes from an expression we cannot follow, a runner group or someone else's runner is left as it is and listed on the result page, together with a ready-made prompt that names each remaining job and the exact label it should get. Paste that prompt into Claude Code, Claude or ChatGPT with access to the repository, or use the optimize-my-ci skill.
3. Let each job size itself
The self-sizing label asks us to choose the class for every run:
runs-on: discountrunners-auto/key=${{ github.run_id }}-build
- A job starts on a 4-vCPU x64 slim runner and may move between 2 and 16 vCPUs. These are x64 vCPUs, each a hyperthread: half a physical core.
- Each new size is tried for two runs before it is compared with the sizes the job already ran on. The choice then follows your account's goal: the cheapest size per run, the cheapest size that is not more than 10% slower than where the job started (the default), or the fastest.
- Smaller sizes are tried only off your default branch, so a trial cannot slow the branch your team ships from.
- A size the job ran out of memory on, or failed every run on, is not tried again.
- The job page says which size the run got and why, and so does the job's log.
The label needs its /key= part, and matrix jobs should include ${{ strategy.job-index }} in the key so each entry is sized on its own. Under Settings → Self-sizing an admin can cap what one size trial may cost; a size whose two trial runs would cost more is skipped. Self-sizing is turned on per account during early access: ask us to enable it.
Other ways to make runs faster or cheaper
- Cache dependencies and Docker layers in the runner's own region, keep directories on sticky disks, or boot a repository image with your tools preinstalled.
- Read a run's timeline: the “Why it took this long” view shows which chain of jobs sets the run's duration, which is where a bigger runner helps.
- Analytics → Where the time goes ranks jobs by total runner time, so you start with the ones that matter.
- Import your Actions history to see jobs that still run on other runners and how long they take there.
- Ask Claude: the plugin's skills read the same measurements through our MCP server and make the workflow edits with your own GitHub rights.
Screenshots and videos in Help are a demonstration rebuilt from our own benchmark jobs. The jobs, steps, run times and charges are real; queue waits and the CPU, memory, disk and network graphs in them are illustrative, not measurements.