Your self-hosted GitHub runners can't keep up at peak and sit idle at night. How do you run them at scale?
AdvancedScenarioPipelines at scale
Answer
Situation read → Static runner VMs are both too few at peak and wasted off-peak. Run ephemeral runners that scale with the job queue.
What I'd do →
- Deploy Actions Runner Controller (ARC) with runner scale sets on EKS.
helm install arc --namespace arc-systems --create-namespace \
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller
helm install linux-runners --namespace arc-runners --create-namespace \
--set githubConfigUrl="https://github.com/acme" \
--set githubConfigSecret=gh-app-secret \
--set minRunners=2 --set maxRunners=100 \
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set
- Ephemeral: one job per pod, then it's destroyed, so no state leaks between jobs.
- Nodes from Karpenter on Spot, scaling to near zero at night.
- Docker builds: use BuildKit as a remote builder or rootless setup rather than privileged Docker-in-Docker.
- Security: separate runner groups for public repos or untrusted PRs, and runner pods with only the IAM permissions they need via IRSA.
Why → Queue-driven ephemeral runners give elastic capacity and a clean environment for every job.
Interview tip → Mention ephemeral runners as a security feature, not just a scaling one.
More on Pipelines at scale
The CI pipeline takes 45 minutes. Developers want it under 10. How do you approach it?IntermediateYou have a monorepo with 40 services. Every commit builds and tests all of them. How do you fix that?AdvancedFlaky tests fail 1 in 5 runs and developers just click "re-run". How do you fix this culture and the tests?BeginnerDocker builds in CI take 12 minutes because every runner starts with an empty cache. How do you speed them up?IntermediateHow do you secure the software supply chain from commit to production?AdvancedFifty teams have copy-pasted pipelines that have drifted apart. How do you standardise them?Intermediate