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.object
AutoScaler

Constructor

AutoScaler(autoscale_enabled, max_replicas, min_replicas, refresh_period_seconds, target_utilization)

Parameters

autoscale_enabled
bool
Required

Indicates whether the AutoScaler is enabled or disabled.

max_replicas
int
Required

The maximum number of containers for the Autoscaler to use.

min_replicas
int
Required

The minimum number of containers for the Autoscaler to use.

refresh_period_seconds
int
Required

How often the AutoScaler should attempt to scale the Webservice.

target_utilization
int
Required

The target utilization (in percent out of 100) the AutoScaler should attempt to maintain for the Webservice.

autoscale_enabled
bool
Required

Indicates whether the AutoScaler is enabled or disabled.

max_replicas
int
Required

The maximum number of containers for the Autoscaler to use.

min_replicas
int
Required

The minimum number of containers for the Autoscaler to use.

refresh_period_seconds
int
Required

How often the AutoScaler should attempt to scale the Webservice.

target_utilization
int
Required

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

payload_obj
dict
Required

A JSON object to convert to a AutoScaler object.

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