A Jenkins queue is growing and builds wait 30 minutes. How do you investigate?
IntermediateProductionJenkins in Production
Answer
Check the queue page for the reason ("Waiting for next available executor", "All nodes of label X are offline"). Then: are agents connected and healthy; is label routing too narrow; is one job hogging all executors (parallel stages with no limit); is the Kubernetes cloud hitting its container cap or failing to schedule pods (kubectl describe pod shows Pending reasons like insufficient CPU); is the controller itself overloaded (GC pauses, disk IO)? Fixes include raising the cloud limit, adding node capacity, limiting parallelism with throttle or lock, and adding builds-per-label metrics.
More on Jenkins in Production
How do you run Jenkins for high availability and scale?AdvancedHow do you tune the Jenkins controller JVM and avoid out-of-memory crashes?AdvancedHow do you back up and restore Jenkins?IntermediateHow do you upgrade Jenkins and its plugins safely?IntermediateHow do you harden a Jenkins controller?AdvancedHow do you configure dynamic Kubernetes agents in Jenkins for production use?Intermediate