Interview Prep/GitHub Actions/Speed, Caching & Cost

Self-hosted runners are idle 70% of the time but queues spike at 10:00. What do you do?

AdvancedScenarioSpeed, Caching & Cost
Answer

Situation read → Static capacity sized for peak.

What I'd do →

  1. Move to ARC with minRunners small and maxRunners sized for peak, on a node pool managed by Karpenter with spot instances for CI.
  2. Schedule higher minRunners during working hours (a CronJob that patches the scale set, or two scale sets).
  3. Pre-pull the runner image on nodes and keep images small to reduce cold starts.
  4. Measure queue time from the run timing API before and after.

Why → Autoscaling turns idle cost into burst cost, and spot cuts the burst cost further.

Interview tip → Mention handling spot interruptions: jobs are retried by re-running, so keep jobs idempotent.

All GitHub Actions questions Roadmap: GitHub Actions

More on Speed, Caching & Cost