Implement custom NodeProvisioner strategy

31 views
Skip to first unread message

Daniel Laird

unread,
Jan 14, 2015, 9:55:18 AM1/14/15
to jenkins...@googlegroups.com
All,

I have found the following file:
core/src/main/java/hudson/slaves/NodeProvisioner.java

I would like to know if its possible to write a plugin that changes the default strategy.

The reason is that we are using Docker Containers on a number of Slave machines.
This allows each Slave Server to do multiple builds.  
However the current implementation of NodeProvisioner.java appears to try and fully load the first server before loading the subsequent machines (each server is a Cloud).
I would like to modify the policy to try and assign builds based on the number of builds currently being built on each server.
A very basic attempt at load balancing.

Perhaps something already allows this - if so would love to hear about it.
Essentially I want to load balance over multiple Clouds (which is how the docker plugin sets up each Docker host)

Cheers
Dan

Christian Lipphardt

unread,
Jan 14, 2015, 3:56:17 PM1/14/15
to jenkins...@googlegroups.com
Hi,

I am also interested in this topic, because we use the docker cloud plugin too and there is no load balancing. It just tries to fill up the first cloud before it moves on to provision slaves on the second configured cloud.

Cheers,
Christian
Reply all
Reply to author
Forward
0 new messages