ScaleSettings 类
表示 AmlCompute 目标的缩放设置。
使用 AmlCompute 类 provisioning_configuration 方法指定缩放设置、 update 更新它们的 get_status 方法和查看它们的方法。
初始化 ScaleSettings 对象。
构造函数
ScaleSettings(minimum_node_count, maximum_node_count, idle_seconds_before_scaledown)
参数
| 名称 | 说明 |
|---|---|
|
minimum_node_count
必需
|
群集上使用的最小节点数。 |
|
maximum_node_count
必需
|
群集上使用的最大节点数。 |
|
idle_seconds_before_scaledown
必需
|
在缩减群集之前,节点空闲时间(以秒为单位)。 |
方法
| deserialize |
将 JSON 对象转换为 ScaleSettings 对象。 |
| serialize |
将此 ScaleSettings 对象转换为 JSON 序列化字典。 |
deserialize
将 JSON 对象转换为 ScaleSettings 对象。
static deserialize(object_dict)
参数
| 名称 | 说明 |
|---|---|
|
object_dict
必需
|
要转换为 ScaleSettings 对象的 JSON 对象。 |
返回
| 类型 | 说明 |
|---|---|
|
提供的 JSON 对象的 ScaleSettings 表示形式。 |
例外
| 类型 | 说明 |
|---|---|