before I read the "deprecating plugins" thread, I was not aware of the
throttle concurrent builds plugin (TCB). It sounds very interesting for
me, because I am still searching an alternative of locks and latches
plugin (LaL). My situation is the following:
We have several jobs doing embedded jboss testing, they cannot run
concurrently on one slave due to port conflict. We've tried locks and
latches, let the test-jobs sharing the same lock. It looks like that LaL
blocks the global build queue (for the test-jobs), and although we have
several slaves idle, we can not utilize them. Finally we fall back to
another sub-optimal solution: every slave has only one executor, that
solved the concurrent problem, but it narrowd the whole "bandwidth".
From now and then, jobs piled up in queue waiting for these very few
executors to be available again.
Now my question: is TCB aware of slaves? That means, can I configure a
resource lock (or something similar) that works for every single slave,
but not globally? So that I can activate multiple executors for each
slave, the test jobs are distributed to the slaves, yet on every one
particular slave, only one running test job is allowed?
greetings
-- vf
PS.: Now I am not quite sure whether LaL is actually capable of this, I
am glad to be proven wrong.
> -----Original Message-----
> From: jenkins...@googlegroups.com [mailto:jenkinsci-
> us...@googlegroups.com] On Behalf Of John Vacz
> Sent: Wednesday, August 10, 2011 8:37 AM
> To: Jenkins Users
> Subject: Throttle concurrent builds plugin
>
> Hi all,
>
> before I read the "deprecating plugins" thread, I was not aware of the
> throttle concurrent builds plugin (TCB). It sounds very interesting for
me,
> because I am still searching an alternative of locks and latches plugin
(LaL).
> My situation is the following:
>
> We have several jobs doing embedded jboss testing, they cannot run
> concurrently on one slave due to port conflict.
[EE] use this plugin to dynamicly assign ports:
http://wiki.hudson-ci.org/display/HUDSON/Port+Allocator+Plugin
We've tried locks and latches,
> let the test-jobs sharing the same lock. It looks like that LaL blocks
the global
> build queue (for the test-jobs), and although we have several slaves
idle, we
> can not utilize them. Finally we fall back to another sub-optimal
solution:
> every slave has only one executor, that solved the concurrent problem,
but it
> narrowd the whole "bandwidth".
> From now and then, jobs piled up in queue waiting for these very few
> executors to be available again.
>
> Now my question: is TCB aware of slaves? That means, can I configure a
> resource lock (or something similar) that works for every single slave,
but not
> globally? So that I can activate multiple executors for each slave, the
test jobs
> are distributed to the slaves, yet on every one particular slave, only
one
> running test job is allowed?
[EE] [EE] I had the same problem.
Very easy solution: use the '> throttle concurrent builds plugin' and tick
the 'Execute concurrent builds if necessary (beta)' option.
This will allow you running each job on all slaves, but you can confine it
to 1 instance per node (slave).
********************************************************** Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail. If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender. Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company or its subsidiaries. **********************************************************