AutoScaleSettings Class
- java.
lang. Object - com.
microsoft. azure. management. batchai. AutoScaleSettings
- com.
public class AutoScaleSettings
Auto-scale settings for the cluster. The system automatically scales the cluster up and down (within minimumNodeCount and maximumNodeCount) based on the number of queued and running jobs assigned to the cluster.
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
initialNodeCount()
Get the number of compute nodes to allocate on cluster creation. Note that this value is used only during cluster creation. Default: 0. |
int |
maximumNodeCount()
Get the maximum number of compute nodes the cluster can have. |
int |
minimumNodeCount()
Get the minimum number of compute nodes the Batch AI service will try to allocate for the cluster. Note, the actual number of nodes can be less than the specified value if the subscription has not enough quota to fulfill the request. |
Auto |
withInitialNodeCount(Integer initialNodeCount)
Set the number of compute nodes to allocate on cluster creation. Note that this value is used only during cluster creation. Default: 0. |
Auto |
withMaximumNodeCount(int maximumNodeCount)
Set the maximum number of compute nodes the cluster can have. |
Auto |
withMinimumNodeCount(int minimumNodeCount)
Set the minimum number of compute nodes the Batch AI service will try to allocate for the cluster. Note, the actual number of nodes can be less than the specified value if the subscription has not enough quota to fulfill the request. |
Method Details
initialNodeCount
public Integer initialNodeCount()
Get the number of compute nodes to allocate on cluster creation. Note that this value is used only during cluster creation. Default: 0.
Returns:
maximumNodeCount
public int maximumNodeCount()
Get the maximum number of compute nodes the cluster can have.
Returns:
minimumNodeCount
public int minimumNodeCount()
Get the minimum number of compute nodes the Batch AI service will try to allocate for the cluster. Note, the actual number of nodes can be less than the specified value if the subscription has not enough quota to fulfill the request.
Returns:
withInitialNodeCount
public AutoScaleSettings withInitialNodeCount(Integer initialNodeCount)
Set the number of compute nodes to allocate on cluster creation. Note that this value is used only during cluster creation. Default: 0.
Parameters:
Returns:
withMaximumNodeCount
public AutoScaleSettings withMaximumNodeCount(int maximumNodeCount)
Set the maximum number of compute nodes the cluster can have.
Parameters:
Returns:
withMinimumNodeCount
public AutoScaleSettings withMinimumNodeCount(int minimumNodeCount)
Set the minimum number of compute nodes the Batch AI service will try to allocate for the cluster. Note, the actual number of nodes can be less than the specified value if the subscription has not enough quota to fulfill the request.
Parameters:
Returns:
Applies to
Azure SDK for Java