Interview Prep/Jenkins/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.

AdvancedScenarioOperations: scale, HA, upgrades & performance
Answer

Situation read → Make the controller reproducible and protect what is not.

What I'd do →

  1. Codify: controller image with plugins, JCasC, Job DSL for jobs.
  2. Externalize: credentials to a secret store, artifacts to Nexus/S3.
  3. Back up JENKINS_HOME (minus workspaces) nightly to versioned S3; keep secrets/ encrypted.
  4. Runbook: provision a new controller (Terraform/Helm), restore backup or accept history loss, update DNS, verify agents.
  5. 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.

All Jenkins questions Roadmap: Jenkins

More on Operations: scale, HA, upgrades & performance