Elastic Jenkins: Scaling Workers with Docker Swarm and the Jenkins Swarm Plugin
DevOps.com, Thursday, November 12th, 2026
A walkthrough of scaling Jenkins build workers with Docker Swarm and the Jenkins Swarm Plugin, including scale-down and security caveats.
The article shows how the Jenkins Swarm Plugin and Docker Swarm replace manual agent registration, so build capacity can be added with a single docker service scale command and new workers register themselves.
The setup uses one controller that runs no builds and a scalable worker service, with credentials stored as Docker secrets, workers connecting over WebSocket and running as a non-root agent account.
The author warns that scaling down can kill running builds because Swarm chooses which replicas to stop, so it should be done when no builds are running.
It also notes all replicas share the same labels, and covers security checks, CI smoke testing and a hardening checklist.