In Part 3, our static EC2 Agent worked exactly as expected. Builds no longer ran on the Jenkins Controller, the execution environment had its own compute boundary, and labels gave us a clear way to control where Pipelines should run.
But a working architecture is not necessarily a scalable one.
As Jenkins adoption grows, a single static Agent is rarely enough. More concurrent builds require more execution capacity, while different workloads begin to require different types of Agents. A Java build may need Maven and a specific JDK, a frontend Pipeline may require Node.js, an infrastructure Pipeline may need Terraform and the AWS CLI, and a security Pipeline may depend on its own scanning tools.
Before long, one static Agent becomes a fleet of static Agents.
And then another problem becomes difficult to ignore: most of that capacity is not busy all the time .
Outside peak development hours, during quiet periods, or over weekends, EC2 Agents may sit idle while still consuming compute and storage cost.…