Class ECSProvisioningStrategy
- java.lang.Object
-
- hudson.slaves.NodeProvisioner.Strategy
-
- com.cloudbees.jenkins.plugins.amazonecs.ECSProvisioningStrategy
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class ECSProvisioningStrategy extends NodeProvisioner.Strategy
Overrides Jenkins' default ProvisioningStrategy to always provision an agent ASAP. This code is lifted from https://github.com/jenkinsci/jenkins/blob/67e19919081023a54b450fffaf7005d4e40339d3/core/src/main/java/hudson/slaves/NodeProvisioner.java#L632, removing most of the code that handles load statistics averaging in favour of just using the latest values.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ECSProvisioningStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeProvisioner.StrategyDecision
apply(NodeProvisioner.StrategyState state)
Takes a provisioning decision for a single label.
-
-
-
Method Detail
-
apply
@Nonnull public NodeProvisioner.StrategyDecision apply(@Nonnull NodeProvisioner.StrategyState state)
Takes a provisioning decision for a single label. Determines how many ECS tasks to start based solely on queue length and how many agents are in the process of connecting.- Specified by:
apply
in classNodeProvisioner.Strategy
-
-