Is it possible to get Jenkins to quickly create workers from attached clouds?

I have a Jenkins instance that uses the mesos plugin . Almost all of my tasks run through Mesos tasks. I would like to make the working generation a little more aggressive.

The current problem is that for the mesos plugin, I have all the tasks that designate mesos tasks as one-time service slaves, and when assembly is performed on one of these slaves, Jenkins makes any task in the queue wait for a potential executor on these subordinates, unlike rotation of new instances.

Based on the logs, it also seems that Jenkins has a timer that periodically checks whether any subordinates should be deployed based on # jobs in the queue or excessive workload. Is it possible to reduce the polling interval for this process?

+5
source share
1 answer

From Mesos Jenkins Plugin Readme Plugin: Above Collateral Flags

By default, Jenkins spawns slaves irregularly. Say, if there are 2 assemblies in the queue, this will not immediately call 2 executors. He will spawn one artist and someday wait for the first artist to be released before deciding to create a second artist. Jenkins ensures that every artist he spawns is used to the maximum. If you want to override this behavior and immediately call an executor for each assembly in the queue without waiting, you can use these flags during Jenkins startup:

-Dhudson.slaves.NodeProvisioner.MARGIN=50 -Dhudson.slaves.NodeProvisioner.MARGIN0=0.85 
+2
source

Source: https://habr.com/ru/post/1263222/


All Articles