AutoScaler Class
Defines details for autoscaling configuration of a Kubernetes Webservice.
To specify autoscaling configuration, you will typically use the deploy_configuration
or the update
method of the AksWebservice class.
Initialize the AutoScaler.
- Inheritance
-
builtins.objectAutoScaler
Constructor
AutoScaler(autoscale_enabled, max_replicas, min_replicas, refresh_period_seconds, target_utilization)
Parameters
- refresh_period_seconds
- int
How often the AutoScaler should attempt to scale the Webservice.
- target_utilization
- int
The target utilization (in percent out of 100) the AutoScaler should attempt to maintain for the Webservice.
- refresh_period_seconds
- int
How often the AutoScaler should attempt to scale the Webservice.
- target_utilization
- int
The target utilization (in percent out of 100) the AutoScaler should attempt to maintain for the Webservice.
Variables
- autoscale_enabled
- bool
Indicates whether the AutoScaler is enabled or disabled.
- max_replicas
- int
The maximum number of containers for the Autoscaler to use.
- min_replicas
- int
The minimum number of containers for the Autoscaler to use.
- refresh_period_seconds
- int
How often the AutoScaler should attempt to scale the Webservice.
- target_utilization
- int
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
Returns
The AutoScaler representation of the provided JSON object.
Return type
serialize
Convert this AutoScaler object into a JSON serialized dictionary.
serialize()
Returns
The JSON representation of this AutoScaler object.
Return type
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for