Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins - maximum number of concurrent jobs

Tags:

jenkins

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

like image 917
user1164061 Avatar asked Mar 08 '12 23:03

user1164061


People also ask

How many concurrent builds can I run on single Jenkins?

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 ...

How many jobs we can run in Jenkins?

Jenkins can run as many jobs as you have available "executors". You can change the number of executors at will in the configuration.

What is concurrent builds in Jenkins?

Jenkins allows for parallel execution of builds for a Job. Job configuration page has a check box, "Execute concurrent builds if necessary". Also, in the master node configuration set the "# of executors" field to more than 1. Once these two are done, parallel job execution is enabled.

Can we build multiple jobs at a time using Jenkins?

Yes it's possible. Doc: If this option is checked, Jenkins will schedule and execute multiple builds concurrently (provided that you have sufficient executors and incoming build requests.)


1 Answers

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

like image 171
gaige Avatar answered Sep 17 '22 13:09

gaige