Class AnkaProvisioningStrategy

java.lang.Object
hudson.slaves.NodeProvisioner.Strategy
com.veertu.plugin.anka.AnkaProvisioningStrategy
All Implemented Interfaces:
ExtensionPoint

@Extension public class AnkaProvisioningStrategy extends NodeProvisioner.Strategy
Fast provisioning strategy for one-shot Anka VM agents.

The strategy itself is intentionally trivial: it compares queued demand against the executors that already exist or are on their way (available + connecting + Jenkins' native planned-capacity snapshot) and asks the cloud to provision the difference. It does not try to second-guess the LoadStatistics snapshot. The defense against over-provisioning during the boot/connect window lives in AnkaMgmtCloud.provision(hudson.slaves.Cloud.CloudState, int), which tracks nodes it has started but not yet handed to Jenkins and refuses to start more than are actually needed.