Jenkins Swarm plugin for self organizing slave nodes.
This plugin enables slaves to auto-discover a nearby Jenkins master and join it automatically, thereby forming an ad-hoc cluster. Swarm makes it easier to auto scale a Jenkins cluster by spinning up and tearing down new slave nodes since no manual intervention is required to make them join or leave the cluster.
More documentation available on the Jenkins wiki: