Skip to content
Preptima
hardScenarioDesignSeniorStaff

How would you architect an ephemeral, auto-scaling GitHub Actions runner infrastructure using spot instances to drastically reduce costs without compromising pipeline reliability or introducing unacceptable queuing delays?

2 min readUpdated 2026-08-15

Answer

Short answer

An analysis of the challenges in designing a cost-effective, scalable GitHub Actions runner environment using spot instances, focusing on state management, instance termination handling, and performance tuning.

Was this answer helpful?

Likely follow-ups

  • How would you handle a spot interruption that arrives mid-test-run, after the build has already published partial artifacts?
  • What is your fallback if an entire instance family gets reclaimed simultaneously across all of your diversified spot pools?
  • How do you prevent a compromised ephemeral runner from leaving access behind for the next job scheduled onto that instance?

Related questions

Masterclass guide