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

Name Description
autoscale_enabled
Required

Indicates whether the AutoScaler is enabled or disabled.

max_replicas
Required
int

The maximum number of containers for the Autoscaler to use.

min_replicas
Required
int

The minimum number of containers for the Autoscaler to use.

refresh_period_seconds
Required
int

How often the AutoScaler should attempt to scale the Webservice.

target_utilization
Required
int

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
int

The maximum number of containers for the Autoscaler to use.

min_replicas
Required
int

The minimum number of containers for the Autoscaler to use.

refresh_period_seconds
Required
int

How often the AutoScaler should attempt to scale the Webservice.

target_utilization
Required
int

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
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

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.