Your single Jenkins controller is slow, crashes weekly, and everyone is afraid to upgrade it. What do you do?
IntermediateScenarioPipelines at scale
Answer
Situation read → A long-lived, hand-configured controller running builds on itself is a classic single point of failure. Make it reproducible, then lighter.
What I'd do →
- Stop running builds on the controller: set its executors to 0 and use ephemeral agents (Kubernetes plugin or EC2 agents).
- Capture its config as code with Configuration as Code (JCasC) and plugins in a
plugins.txt, so a new controller can be built from Git. - Back up
JENKINS_HOMEand test a restore. - Reduce plugins to what's actually used; plugins cause most upgrade breakage.
- Upgrade on the LTS line in a staging copy first.
- Longer term: split per team into several controllers, or plan the move to GitHub Actions or GitLab CI.
Why → Config as code plus ephemeral agents turns a fragile pet into something you can rebuild in minutes.
Interview tip → Mention executors set to 0 on the controller; it's the first step every Jenkins expert recommends.
More on Pipelines at scale
The CI pipeline takes 45 minutes. Developers want it under 10. How do you approach it?IntermediateYou have a monorepo with 40 services. Every commit builds and tests all of them. How do you fix that?AdvancedFlaky tests fail 1 in 5 runs and developers just click "re-run". How do you fix this culture and the tests?BeginnerYour self-hosted GitHub runners can't keep up at peak and sit idle at night. How do you run them at scale?AdvancedDocker builds in CI take 12 minutes because every runner starts with an empty cache. How do you speed them up?IntermediateHow do you secure the software supply chain from commit to production?Advanced