Interview Prep/CI/CD/Metrics, Performance and Cost

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.

All CI/CD questions

More on Metrics, Performance and Cost