Builds slowed down after moving `JENKINS_HOME` to EFS/NFS. What happened and what do you do?
AdvancedScenarioOperations: scale, HA, upgrades & performance
Answer
Situation read → Jenkins does many small file operations (build records, flow nodes, logs); network file systems add latency to each.
What I'd do →
- Measure with
iostat/EFS metrics; check burst credits on EFS. - Move to block storage (EBS gp3 with provisioned IOPS, or a fast CSI volume).
- Use
PERFORMANCE_OPTIMIZEDdurability to reduce writes. - Keep workspaces off the controller entirely.
Why → Block storage gives low-latency I/O that Jenkins' write pattern needs.
Interview tip → Mention EFS throughput modes if forced to stay on it.
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