Running three jobs at the same time

20 праглядаў
Перайсці да першага непрачытанага паведамлення

sravan

не прачытана,
14 жні 2020 г., 16:11:1414.08.20
да Jenkins Users
Hi All,
I know jenkins allow to run two jobs/ threads at the same time. Is there  way I can increase it to run three jobs at the same time?

I am trying to investigate this and could not find any solution on this. Any help is appreciated .


Thanks,
Sravan

Jan Monterrubio

не прачытана,
14 жні 2020 г., 16:16:4214.08.20
да jenkins...@googlegroups.com
How are you running two jobs? is that 2 executors on the same machine? 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/71974307-191b-42a0-8db0-2409c9adce83n%40googlegroups.com.

sravan

не прачытана,
14 жні 2020 г., 17:53:5214.08.20
да Jenkins Users

yes as two executors on the same machine

Jan Monterrubio

не прачытана,
14 жні 2020 г., 18:54:2014.08.20
да jenkins...@googlegroups.com
Would increase the executors to 3 not do the trick? I might be misunderstanding the problem. 

sravan

не прачытана,
14 жні 2020 г., 20:27:5514.08.20
да Jenkins Users
My problem is I want to run 3 jobs at the same time. currently jenkins allow you to run 2 only 

Jan Monterrubio

не прачытана,
14 жні 2020 г., 21:05:5014.08.20
да jenkins...@googlegroups.com
That sounds like a configuration problem to me, as have some agents that have 6cpus and 6 executors and some that have 3 executors. I think we can run about 40 jobs in parallel with our setup. 

Baptiste Mathus

не прачытана,
15 жні 2020 г., 02:51:5415.08.20
да jenkins...@googlegroups.com
However tempting, I would recommend not using ever more than 1-executor agents.
Especially for heavy tasks related to development.

In $previousJob we've burned hours of engineering time to understand what was causing random failures when the wrong jobs would run together at the wrong time.

TL;DR it's mostly a matter of machine load, and it's exponentially easier to have more agents, isolated with a resource limitation layer like docker if you run them on the same host.
And if you're using the cloud, just set up two smaller VMs or so instead of a single big one.


Cheers

Адказаць усім
Адказаць аўтару
Наперад
0 новых паведамленняў