How should you size and schedule runners to balance cost and queue time?
IntermediateProductionMetrics, Performance and Cost
Answer
Use autoscaling pools (ARC, Karpenter/Cluster Autoscaler, ASG with warm pools) with a small warm minimum during working hours and scale to zero at night, use spot instances for stateless CI (with retry on interruption), separate pools by size, and use pre-pulled images or a node image with common tools cached to cut start time. Review queue time against cost periodically, with a target such as p95 queue under 60 seconds.
More on Metrics, Performance and Cost
How do you measure DORA metrics in practice?IntermediateWhat do the DORA performance levels look like, and how do you use them?IntermediateWhat are common ways DORA metrics get gamed or misread?AdvancedWhich pipeline metrics do you monitor for the CI platform itself?IntermediateHow do you cut CI cost without hurting developer speed?IntermediateHow do you use a remote build cache (Gradle, Bazel, Turborepo, Nx)?Advanced