Jenkins is a single VM with local disk and no backups. The business wants an RTO of 1 hour. Design recovery.
AdvancedScenarioOperations: scale, HA, upgrades & performance
Answer
Situation read → Make the controller reproducible and protect what is not.
What I'd do →
- Codify: controller image with plugins, JCasC, Job DSL for jobs.
- Externalize: credentials to a secret store, artifacts to Nexus/S3.
- Back up
JENKINS_HOME(minus workspaces) nightly to versioned S3; keepsecrets/encrypted. - Runbook: provision a new controller (Terraform/Helm), restore backup or accept history loss, update DNS, verify agents.
- Run a recovery drill quarterly and time it.
Why → With config as code, recovery is deployment plus a restore, comfortably under an hour.
Interview tip → State RPO too: nightly backup means up to 24 h of build history loss.
More on 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?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.IntermediateYour controller serves 2,000 developers and 4,000 jobs. When do you split, and how?Advanced