Is it possible for provisioning Jenkins agents with Docker plugin as a Swarm cluster ?
I have one huge production Jenkins master which is contains projects over 50. This Jenkins master act as a build and scheduler machine. Then I've been facing the issue about the Jenkins performance and its run out of resources. So I'm trying to do the optimization by change its architecture to Master/agents.
The concerns are, I have limited number of agent and limited resources per agent. Hence, I would like to find the best approach that can provide us for acceptable costs and the difficulty of the management. So, I came up with the solution using Jenkins plugin 'docker plugin' with can operate with the minimum resources perfectly.
I've tested with my test cluster but the scenario was Master/Agents in the same machine using docker plugin. It works well.
Then I'd like to implement in my production Jenkins with this docker plugin but I don't want to spawn agents node in the same machine. I want to join agent nodes to the swarm cluster.