The controller restart takes 25 minutes. How do you bring it down to under 5?
AdvancedScenarioOperations: scale, HA, upgrades & performance
Answer
Situation read → Startup loads every job and build record and initializes plugins.
What I'd do →
- Measure with startup logs (
Started initialization,Loaded all jobs,Completed initialization) to see which phase is slow. - Discard old builds and orphaned branch jobs; job loading is usually dominant.
- Remove unused plugins; check for plugins doing heavy work on start.
- Fast storage, enough heap, and avoid
init.groovy.dscripts doing slow API calls.
Why → Startup time scales with items, builds and plugins.
Interview tip → Quote "Loaded all jobs" timing from logs as your diagnostic.
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.AdvancedQueue length spikes to 80 every morning at 9:30 and builds wait 15 minutes. How do you analyse and fix?IntermediateThe 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.Intermediate