[Buildbot-devel] SlaveLock across several slaves on same computer?

Marcus Lindblom macke at yar.nu
Tue Jan 5 20:03:05 UTC 2010


On 2010-01-05 19:51, Nicolas Alvarez wrote:
> Marcus Lindblom wrote:
>> 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.
>>
>> [...]
>>
>> P.S. I suppose a MasterSystemLock could also be useful as we'll be
>> running five master processes on the same server.
>
> I "solve" this problem by running only one master, and only one slave per
> computer.

As soon as we start sending invoices, I'll be ordering more computers. ;)

/Marcus, startup entrepreneur








More information about the devel mailing list