Interview Prep/Jenkins/Operations: scale, HA, upgrades & performance

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 →

  1. Check /queue/api/json why-reasons: no executors, cloud capacity reached, or pods pending.
  2. Look at metrics: executor utilisation, cloud containerCap, cluster autoscaler events.
  3. Raise cloud caps and namespace quotas if the cluster has room; add node pool headroom before 9:30 (scheduled scale-up).
  4. Reduce demand: abortPrevious on 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.

All Jenkins questions Roadmap: Jenkins

More on Operations: scale, HA, upgrades & performance