ScaleSettings Class
Represents scale settings for an AmlCompute target.
Use the AmlCompute class provisioning_configuration method to specify scale
settings, the update method to update them, and the get_status method to view them.
Initialize the ScaleSettings object.
Constructor
ScaleSettings(minimum_node_count, maximum_node_count, idle_seconds_before_scaledown)
Parameters
| Name | Description |
|---|---|
|
minimum_node_count
Required
|
The minimum number of nodes to use on the cluster. |
|
maximum_node_count
Required
|
The maximum number of nodes to use on the cluster. |
|
idle_seconds_before_scaledown
Required
|
The node idle time in seconds before scaling down the cluster. |
Methods
| deserialize |
Convert a JSON object into a ScaleSettings object. |
| serialize |
Convert this ScaleSettings object into a JSON serialized dictionary. |
deserialize
Convert a JSON object into a ScaleSettings object.
static deserialize(object_dict)
Parameters
| Name | Description |
|---|---|
|
object_dict
Required
|
A JSON object to convert to a ScaleSettings object. |
Returns
| Type | Description |
|---|---|
|
The ScaleSettings representation of the provided JSON object. |
Exceptions
| Type | Description |
|---|---|
serialize
Convert this ScaleSettings object into a JSON serialized dictionary.
serialize()
Returns
| Type | Description |
|---|---|
|
The JSON representation of this ScaleSettings object. |