[Buildbot-devel] SlaveLock across several slaves on same computer?
Marcus Lindblom
macke at yar.nu
Tue Jan 5 10:40:41 UTC 2010
Hi,
I'm about to setup the third and fourth slave prcocess on two slave
computers respectively, and I was thinking that a SlaveLock that is
system wide (SystemLock?) would be good to have here. (We're already
getting timeouts in some multithreading tests due to interference.)
Since Python doesn't seem to have a named system-wide mutex (AFAICT), I
would implement it as a kernel Mutex on Windows (these are system-wide
and not process-local as critical sections are) and via a lock-file (or
whatever you guys use ;) on unixy systems.
(Or perhaps twisted has something applicable?)
However, it Brian's DB work will allow us to unify all masters/slaves
into one process, this won't necessary as today's SlaveLock will suffice.
So, will that be the case, and if so, will the DB work be ready during Q1?
Otherwise I'd best get hacking. :)
Ideas?
Cheers,
/Marcus
P.S. I suppose a MasterSystemLock could also be useful as we'll be
running five master processes on the same server.
More information about the devel
mailing list