<div dir="ltr">Hi,<div><br></div><div>Thank you for your reply! Is there any way to customize what oversubscribed means? We already use a locking mechanism, but still this translates into having multiple running builds that just wait for the locks for several hours. Ideally, I would like to avoid this.</div><div><br></div><div>Also, by any chance, can you read a lock value from the canStartBuild function?</div><div><br></div><div>Thank you!</div><div>Vlad Bogolin </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 1, 2022 at 12:40 PM Povilas Kanapickas <<a href="mailto:povilas@radix.lt">povilas@radix.lt</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Vlad,<br>
<br>
You could setup a number of master locks that are each assigned to a<br>
particular physical machine. Then you can setup renderable locks for<br>
builds: a build would look into what physical machine it's about to<br>
launch on and select the correct lock. If the physical machine is<br>
oversubscribed, Buildbot will notice that lock can not be acquired look<br>
for another worker for the build.<br>
<br>
Regards,<br>
Povilas<br>
<br>
On 2022-06-28 12:44, Vlad Bogolin wrote:<br>
> Hello,<br>
> <br>
> We are using buildbot with primary DockerLatentWorkers for our CI. So,<br>
> given a physical machine, we have several DockerLatentWorkers that may<br>
> run on it. While this works well, in some cases buildbot starts too many<br>
> latent workers on the same machine. Is there a way to limit starting<br>
> builds for a particular DockerLatentWorker if others are already running<br>
> on the same machine?<br>
> <br>
> I feel like this should be achievable using the canStartBuild, but I am<br>
> unsure how. Is it possible to access the full list of defined latent<br>
> workers and see if one is on or not in the canStartBuild function?<br>
> <br>
> Thank you!<br>
> Vlad Bogolin<br>
> <br>
> _______________________________________________<br>
> users mailing list<br>
> <a href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a><br>
> <a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a><br>
> <br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Vlad</div></div>