Queue length spikes to 80 every morning at 9:30 and builds wait 15 minutes. How do you analyse and fix?
IntermediateScenarioOperations: scale, HA, upgrades & performance
Answer
Situation read → Capacity vs demand mismatch, or a provisioning bottleneck.
What I'd do →
- Check
/queue/api/jsonwhy-reasons: no executors, cloud capacity reached, or pods pending. - Look at metrics: executor utilisation, cloud
containerCap, cluster autoscaler events. - Raise cloud caps and namespace quotas if the cluster has room; add node pool headroom before 9:30 (scheduled scale-up).
- Reduce demand:
abortPreviouson PRs, skip unchanged services, avoid cron jobs at 9:30.
Why → Most queue spikes are caps or autoscaler lag, not Jenkins itself.
Interview tip → Always ask "what is the why-reason in the queue" first.
More on Operations: scale, HA, upgrades & performance
Jenkins is a single VM with local disk and no backups. The business wants an RTO of 1 hour. Design recovery.AdvancedThe controller has 12 GB heap and still does full GCs every few minutes. What do you investigate?AdvancedYou need to upgrade from Jenkins 2.426 LTS (Java 11) to the current LTS. What is your sequence?IntermediateBuild history is needed for 2 years for compliance, but the controller disk is filling. What do you do?IntermediateA plugin update caused the controller to fail on startup in production. Recover.IntermediateYour controller serves 2,000 developers and 4,000 jobs. When do you split, and how?Advanced