AutoScaler クラス

Kubernetes Webservice の自動スケール構成の詳細を定義します。

自動スケール構成を指定するには、通常、AksWebservice クラスの deploy_configuration または update メソッドを使用します。

AutoScaler を初期化します。

継承
builtins.object
AutoScaler

コンストラクター

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

パラメーター

名前 説明
autoscale_enabled
必須

自動スケーラーが有効か無効かを示します。

max_replicas
必須
int

自動スケーラーが使用するコンテナーの最大数。

min_replicas
必須
int

自動スケーラーが使用するコンテナーの最小数。

refresh_period_seconds
必須
int

自動スケーラーがこの Webservice のスケーリングを試行する頻度。

target_utilization
必須
int

自動スケーラーがこの Webservice に対してメンテナンスを試行する目標使用率 (最大 100%)。

autoscale_enabled
必須

自動スケーラーが有効か無効かを示します。

max_replicas
必須
int

自動スケーラーが使用するコンテナーの最大数。

min_replicas
必須
int

自動スケーラーが使用するコンテナーの最小数。

refresh_period_seconds
必須
int

自動スケーラーがこの Webservice のスケーリングを試行する頻度。

target_utilization
必須
int

自動スケーラーがこの Webservice に対してメンテナンスを試行する目標使用率 (最大 100%)。

変数

名前 説明
autoscale_enabled

自動スケーラーが有効か無効かを示します。

max_replicas
int

自動スケーラーが使用するコンテナーの最大数。

min_replicas
int

自動スケーラーが使用するコンテナーの最小数。

refresh_period_seconds
int

自動スケーラーがこの Webservice のスケーリングを試行する頻度。

target_utilization
int

自動スケーラーがこの Webservice に対してメンテナンスを試行する目標使用率 (最大 100%)。

メソッド

deserialize

JSON オブジェクトを自動スケーラー オブジェクトに変換します。

serialize

この自動スケーラー オブジェクトを JSON のシリアル化されたディクショナリに変換します。

deserialize

JSON オブジェクトを自動スケーラー オブジェクトに変換します。

static deserialize(payload_obj)

パラメーター

名前 説明
payload_obj
必須

自動スケーラー オブジェクトに変換する JSON オブジェクト。

戻り値

説明

指定された JSON オブジェクトの自動スケーラー表現。

serialize

この自動スケーラー オブジェクトを JSON のシリアル化されたディクショナリに変換します。

serialize()

戻り値

説明

この自動スケーラー オブジェクトの JSON 表現。