Jenkins - maximum number of concurrent jobs

Jenkins

Jenkins Problem Overview


What is the maximum number of jobs I can run concurrently in Jenkins?

Jenkins Solutions


Solution 1 - Jenkins

The maximum number of Jenkins jobs is dependent upon what you set as the limits in the master and slaves. Usually, we limit by the number of cores, but your mileage may vary depending upon available memory, disk speed, availability of SSD, and overlap of source code.

For the master, this is set in Manage Jenkins > Configure System > # of executors

For the slaves (nodes), it is set in Manage Jenkins > Nodes > (each node) > Configure > # of executors

Solution 2 - Jenkins

It's completely dependent on your hardware. If you run a single Jenkins instance with on build slaves, you can define how many concurrent build executors you want on the main configuration page at [your Jenkins URL]/configure - I've had success setting up 2 executors per CPU core available, but that will depend on what your builds do and how much CPU they need to consume.

If you also have remote build slaves, you can set up multiple executors on those as well. Your maximum number of concurrent jobs will be (executors on master) + (number of remote slaves) * (executors per slave).

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser1164061View Question on Stackoverflow
Solution 1 - JenkinsgaigeView Answer on Stackoverflow
Solution 2 - Jenkinsgareth_bowlesView Answer on Stackoverflow