How do you run Jenkins for high availability and scale?
AdvancedProductionJenkins in Production
Answer
Open-source Jenkins has one active controller, so scale and resilience come from design: keep the controller small and stateless-ish (JCasC for config, plugins pinned), push all work to ephemeral agents (Kubernetes plugin, EC2 Fleet), store JENKINS_HOME on durable storage with frequent snapshots, and split by team onto multiple controllers rather than one giant instance. Restart recovery on Kubernetes is a StatefulSet with a persistent volume. True active-active HA requires CloudBees CI. Monitor queue length, executor utilisation, and controller JVM heap.
More on Jenkins in Production
How do you tune the Jenkins controller JVM and avoid out-of-memory crashes?AdvancedHow do you back up and restore Jenkins?IntermediateHow do you upgrade Jenkins and its plugins safely?IntermediateHow do you harden a Jenkins controller?AdvancedHow do you configure dynamic Kubernetes agents in Jenkins for production use?IntermediateWhat are the pitfalls of Docker socket mounting in Jenkins agents, and what are alternatives?Advanced