AutoScaleSettings Class
Auto-scale settings for Synapse Spark compute.
- Inheritance
-
builtins.objectAutoScaleSettings
Constructor
AutoScaleSettings(*, min_node_count: int | None = None, max_node_count: int | None = None, enabled: bool | None = None)
Keyword-Only Parameters
Name | Description |
---|---|
min_node_count
|
The minimum compute node count. |
max_node_count
|
The maximum compute node count. |
enabled
|
Specifies if auto-scale is enabled. |
Examples
Configuring AutoScaleSettings on SynapseSparkCompute.
from azure.ai.ml.entities import (
AutoPauseSettings,
AutoScaleSettings,
IdentityConfiguration,
ManagedIdentityConfiguration,
SynapseSparkCompute,
)
synapse_compute = SynapseSparkCompute(
name="synapse_name",
resource_id="/subscriptions/subscription/resourceGroups/group/providers/Microsoft.Synapse/workspaces/workspace/bigDataPools/pool",
identity=IdentityConfiguration(
type="UserAssigned",
user_assigned_identities=[
ManagedIdentityConfiguration(
resource_id="/subscriptions/subscription/resourceGroups/group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity"
)
],
),
scale_settings=AutoScaleSettings(min_node_count=1, max_node_count=3, enabled=True),
auto_pause_settings=AutoPauseSettings(delay_in_minutes=10, enabled=True),
)
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Python