Package com.veertu.plugin.anka
Class AnkaProvisioningStrategy
java.lang.Object
hudson.slaves.NodeProvisioner.Strategy
com.veertu.plugin.anka.AnkaProvisioningStrategy
- All Implemented Interfaces:
ExtensionPoint
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPing the nodeProvisioner as a new task enters the queue, so it can provision an Anka agent without waiting for the next NodeProvisioner cycle.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AnkaProvisioningStrategy
public AnkaProvisioningStrategy()
-
-
Method Details
-
apply
@Nonnull public NodeProvisioner.StrategyDecision apply(@Nonnull NodeProvisioner.StrategyState strategyState) - Specified by:
applyin classNodeProvisioner.Strategy
-