Can you run two Jenkins controller replicas behind a load balancer on a shared NFS volume for HA?
IntermediateScenarioOperations: scale, HA, upgrades & performance
Answer
Situation read → A common misconception.
What I'd do →
- Explain no: each controller keeps state in memory and writes files independently; two writers corrupt data and both run the same scheduled builds.
- Offer real options: single replica StatefulSet with fast rescheduling, warm standby with replication, multiple independent controllers, or CloudBees HA.
- Also mention NFS latency hurts Jenkins performance; prefer block storage.
Why → Open-source Jenkins is single-writer by design.
Interview tip → Saying "no, and here is why" earns more credit than a creative but unsafe design.
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