Class ProvisionedWorkerPoolProperties
java.lang.Object
co.yellowdog.platform.model.ProvisionedWorkerPoolProperties
- All Implemented Interfaces:
WorkerPoolProperties
,Serializable
@ValidatedBy(ProvisionedWorkerPoolPropertiesValidator.class)
public class ProvisionedWorkerPoolProperties
extends Object
implements WorkerPoolProperties
Defines properties to determine the behaviour that the Scheduler service should use when managing a provisioned worker pool.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder that can be used to build a new ProvisionedWorkerPoolProperties that is automatically validated on build. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
How many workers to create on each node.Determines the auto shutdown behaviour applied for idle nodes.Determines the auto shutdown behaviour applied for an idle pool.The maximum number of nodes that the worker pool can be scaled up to.The minimum number of nodes that the worker pool can be scaled down to.The time given for a node to be registered before it is considered to have failed.An optional tag value that will be attached to all workers in this pool and used to constrain worker allocation.int
hashCode()
void
setCreateNodeWorkers
(NodeWorkerTarget createNodeWorkers) How many workers to create on each node.void
setIdleNodeShutdown
(AutoShutdown idleNodeShutdown) Determines the auto shutdown behaviour applied for idle nodes.void
setIdlePoolShutdown
(AutoShutdown idlePoolShutdown) Determines the auto shutdown behaviour applied for an idle pool.void
setMaxNodes
(Integer maxNodes) The maximum number of nodes that the worker pool can be scaled up to.void
setMetricsEnabled
(Boolean metricsEnabled) void
setMinNodes
(Integer minNodes) The minimum number of nodes that the worker pool can be scaled down to.void
setNodeBootTimeout
(Duration nodeBootTimeout) The time given for a node to be registered before it is considered to have failed.void
setNodeConfiguration
(WorkerPoolNodeConfiguration nodeConfiguration) void
setWorkerTag
(String workerTag) An optional tag value that will be attached to all workers in this pool and used to constrain worker allocation.toString()
-
Method Details
-
builder
-
toBuilder
-
getCreateNodeWorkers
How many workers to create on each node.- Returns:
- how many workers to create on each node
-
getMinNodes
The minimum number of nodes that the worker pool can be scaled down to.- Returns:
- the minimum number of nodes
-
getMaxNodes
The maximum number of nodes that the worker pool can be scaled up to.- Returns:
- the maximum number of nodes
-
getNodeBootTimeout
The time given for a node to be registered before it is considered to have failed.- Returns:
- the time given for a node to be registered before it is considered to have failed
-
getIdleNodeShutdown
Determines the auto shutdown behaviour applied for idle nodes.- Returns:
- the auto shutdown behaviour applied for idle nodes
-
getIdlePoolShutdown
Determines the auto shutdown behaviour applied for an idle pool.- Returns:
- the auto shutdown behaviour applied for an idle pool
-
getWorkerTag
An optional tag value that will be attached to all workers in this pool and used to constrain worker allocation.- Specified by:
getWorkerTag
in interfaceWorkerPoolProperties
- Returns:
- an optional tag value
-
getNodeConfiguration
- Specified by:
getNodeConfiguration
in interfaceWorkerPoolProperties
-
getMetricsEnabled
- Specified by:
getMetricsEnabled
in interfaceWorkerPoolProperties
-
setCreateNodeWorkers
How many workers to create on each node.- Parameters:
createNodeWorkers
- how many workers to create on each node
-
setMinNodes
The minimum number of nodes that the worker pool can be scaled down to.- Parameters:
minNodes
- the minimum number of nodes
-
setMaxNodes
The maximum number of nodes that the worker pool can be scaled up to.- Parameters:
maxNodes
- the maximum number of nodes
-
setNodeBootTimeout
The time given for a node to be registered before it is considered to have failed.- Parameters:
nodeBootTimeout
- the time given for a node to be registered before it is considered to have failed
-
setIdleNodeShutdown
Determines the auto shutdown behaviour applied for idle nodes.- Parameters:
idleNodeShutdown
- the auto shutdown behaviour applied for idle nodes
-
setIdlePoolShutdown
Determines the auto shutdown behaviour applied for an idle pool.- Parameters:
idlePoolShutdown
- the auto shutdown behaviour applied for an idle pool
-
setWorkerTag
An optional tag value that will be attached to all workers in this pool and used to constrain worker allocation.- Parameters:
workerTag
- an optional tag value
-
setNodeConfiguration
-
setMetricsEnabled
-
equals
-
canEqual
-
hashCode
-
toString
-