Índice do artigofaltam 2 min de leitura
Adopting a dedicated runner is one of the decisions with the biggest impact on CI/CD performance in small teams.
The reason is simple: the cost of lost time (queues, inconsistent builds) is usually higher than the cost of a well-configured machine.
This post is part of the series:
CI/CD series map
- A guide to Git CI/CD for small teams: performance, caching and runners
- GitLab CI: runner tags and job routing
- CI/CD caching: how to design keys and avoid stale caches (GitHub and GitLab)
- Docker layer caching in CI: BuildKit, buildx, cache-from and cache-to
- Dedicated CI/CD runner: when it pays off and how to plan it in a small team
- macOS runners in CI: Intel vs Apple Silicon, costs and pitfalls
1) Signs that you need a dedicated runner
If you check "yes" for 2 or more items, it is worth a serious look:
- Frequent queues: jobs often wait for a runner.
- Unstable execution: the same job varies a lot in duration.
- Heavy builds: docker build, mobile, or a large monorepo.
- macOS is required: high cost per minute for macOS runners.
- You depend on a developer's machine (Wi‑Fi, local use, shutdowns).
2) What a dedicated runner solves (and what it doesn't)
What it does:
- reduces queues (more capacity available)
- increases predictability (stable hardware and network)
- makes local caching easier (especially Docker layers)
It does not solve on its own:
- a bad Dockerfile
- poorly designed cache keys
- unstable dependencies
- too many serialized jobs
3) Minimum planning (so it doesn't become a "dumping-ground runner 2.0")
Define job classes and tags/labels:
lint-test(light)build-heavy(heavy)docker(image build)macos(Apple)linux-x64/linux-arm64(architecture)
The rule is: tags/labels must represent operational decisions.
Further reading:
4) Recommended strategy for a small team
A typical and efficient setup:
- Shared runner (fallback): light jobs, acceptable queues.
- Dedicated runner (main): heavy builds and jobs that affect delivery.
- macOS runner (dedicated): only when needed (iOS/macOS).
5) Security: the point nobody wants to discuss (but everyone should)
A self-hosted runner executes code from your repository.
In practical terms:
- you are running scripts in your own environment
- if the runner is shared between projects, the attack surface grows
Mitigation practices:
- restrict the runner to the groups/projects that need it
- separate runners by sensitivity
- prefer an isolated executor (container) when possible
- keep the system updated and add basic monitoring
Final checklist
- There is evidence of queuing (high queue time).
- Tags/labels were designed before turning the runner on.
- The dedicated runner does not accept "any job".
- There is a fallback plan (shared runner).
- Security was considered (scope and isolation).




