[Buildbot-devel] Lock question: Multiple builders, load-balanced slaves
Scott Lamb
slamb at slamb.org
Thu Nov 2 23:38:14 UTC 2006
On Nov 1, 2006, at 7:01 PM, Roy S. Rapoport wrote:
> Imagine this situation:
> 1. There are two slaves for a given os/hardware;
> 2. There are four builders that want to use these two slaves;
> 3. Each slave can only have one build happening at any given point
>
> I'm trying to figure out how to use interlocks to make this the
> case. This
> wasn't a problem for me until now, because I wasn't load-balancing
> across
> slaves -- so I just created a lock for each slave and had each
> builder who
> wanted to use that slave try to acquire the lock.
>
> Now, the problem is that even though the lock is a SlaveLock, its
> actual
> usage is in the builder.
I'm not sure what you mean by this.
> So if we have machines MA,MB and builders
> BA,BB,BC,BD, assuming interlock LA,LB, if all builders want to
> acquire both
> LA and LB, that means I'm serializing all the builders. That's wrong,
> though -- theoretically, I should be able to have two builds
> happening in
> parallel, one on each system.
The same SlaveLock can be held on each slave simultaneously, which is
what you want. It is for per-slave resources.
> Even using buildbot 0.7.5's lock
> implementation where you can specify how many builders can acquire
> a given
> lock wouldn't help me, because that doesn't seem to tell buildbot
> "you can
> build on both these systems at the same time, but not more than one
> builder
> per system."
I think you're thinking of MasterLock.
> Suggestions? I'm trying to solve the problem where one of our
> platforms
> ends its nightlies at 08:50, and we're thinking load-balancing will
> help us
> do this in a robust way.
>
> -roy
>
> ----------------------------------------------------------------------
> ---
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
--
Scott Lamb <http://www.slamb.org/>
More information about the devel
mailing list