So I was expecting to see builds also executed on the slave 2, but it always tries to use the slave 1. What can I do to make jenkins distribute builds on my 2 available nodes?
I tend to use cloud agents when I can, so when things get overloaded, more agents spin up.
oh, that’s interesting, how do you that? any tutorial I can look at?
we have an internal cloud and my idea, initially, was something like that, but since I didnt know how to do it, I tried, at least, to do a kind of balancing with two nodes
I’ve been around so long that i’ve learned things organically, so i’m really bad at knowing if there are tutorials, but there should be at least posts on google about it.
Generally you want to pick one of the cloud provider plugins - Search Results - most will connect to an api and spin up an instance when one gets overloaded. You just gotta make sure you setup max executors right so jenkins knows when an agent has too many jobs. We don’t have any fancy scheduler that looks at cpu/etc (at least not one i’m aware of).
There’s a few like vmware that will handle internal clouds though the focus seems to be public clouds.