AutoScaler Class
Defines details for autoscaling configuration of a AksWebservice.
AutoScaler configuration values are specified using the deploy_configuration
or update
methods
of the AksWebservice class.
Initialize the AKS AutoScaler.
- Inheritance
-
builtins.objectAutoScaler
Constructor
AutoScaler(autoscale_enabled, max_replicas, min_replicas, refresh_period_seconds, target_utilization)
Parameters
Name | Description |
---|---|
autoscale_enabled
Required
|
Indicates whether the AutoScaler is enabled or disabled. |
max_replicas
Required
|
The maximum number of containers for the AutoScaler to use. |
min_replicas
Required
|
The minimum number of containers for the AutoScaler to use |
refresh_period_seconds
Required
|
How often the AutoScaler should attempt to scale the Webservice. |
target_utilization
Required
|
The target utilization (in percent out of 100) the AutoScaler should attempt to maintain for the Webservice. |
autoscale_enabled
Required
|
Indicates whether the AutoScaler is enabled or disabled. |
max_replicas
Required
|
The maximum number of containers for the AutoScaler to use. |
min_replicas
Required
|
The minimum number of containers for the AutoScaler to use |
refresh_period_seconds
Required
|
How often the AutoScaler should attempt to scale the Webservice. |
target_utilization
Required
|
The target utilization (in percent out of 100) the AutoScaler should attempt to maintain for the Webservice. |
Variables
Name | Description |
---|---|
autoscale_enabled
|
Indicates whether the AutoScaler is enabled or disabled. |
max_replicas
|
The maximum number of containers for the AutoScaler to use. |
min_replicas
|
The minimum number of containers for the AutoScaler to use |
refresh_period_seconds
|
How often the AutoScaler should attempt to scale the Webservice. |
target_utilization
|
The target utilization (in percent out of 100) the AutoScaler should attempt to maintain for the Webservice. |
Methods
deserialize |
Convert a JSON object into a AutoScaler object. |
serialize |
Convert this AutoScaler object into a JSON serialized dictionary. |
deserialize
Convert a JSON object into a AutoScaler object.
static deserialize(payload_obj)
Parameters
Name | Description |
---|---|
payload_obj
Required
|
A JSON object to convert to a AutoScaler object. |
Returns
Type | Description |
---|---|
The AutoScaler representation of the provided JSON object. |
serialize
Convert this AutoScaler object into a JSON serialized dictionary.
serialize()
Returns
Type | Description |
---|---|
The JSON representation of this AutoScaler object. |