-
Notifications
You must be signed in to change notification settings - Fork 232
/
azure.ai.ml.entities.AutoScaleSettings.yml
41 lines (41 loc) · 2.38 KB
/
azure.ai.ml.entities.AutoScaleSettings.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
### YamlMime:PythonClass
uid: azure.ai.ml.entities.AutoScaleSettings
name: AutoScaleSettings
fullName: azure.ai.ml.entities.AutoScaleSettings
module: azure.ai.ml.entities
inheritances:
- builtins.object
summary: Auto-scale settings for Synapse Spark compute.
constructor:
syntax: 'AutoScaleSettings(*, min_node_count: int | None = None, max_node_count:
int | None = None, enabled: bool | None = None)'
keywordOnlyParameters:
- name: min_node_count
description: The minimum compute node count.
types:
- <xref:typing.Optional>[<xref:int>]
- name: max_node_count
description: The maximum compute node count.
types:
- <xref:typing.Optional>[<xref:int>]
- name: enabled
description: Specifies if auto-scale is enabled.
types:
- <xref:typing.Optional>[<xref:bool>]
examples:
- "Configuring AutoScaleSettings on SynapseSparkCompute.<!--[!code-python[Main](les\\\
ml_samples_spark_configurations.py )]-->\n\n<!-- literal_block {\"ids\": [], \"\
classes\": [], \"names\": [], \"dupnames\": [], \"backrefs\": [], \"source\": \"\
C:\\\\hostedtoolcache\\\\windows\\\\Python\\\\3.11.9\\\\x64\\\\Lib\\\\site-packages\\\
\\py2docfx\\\\dist_temp\\\\8\\\\azure-ai-ml-1.16.1\\\\samples\\\\ml_samples_spark_configurations.py\"\
, \"xml:space\": \"preserve\", \"force\": false, \"language\": \"python\", \"highlight_args\"\
: {\"linenostart\": 1}, \"linenos\": false} -->\n\n````python\n\n from azure.ai.ml.entities\
\ import (\n AutoPauseSettings,\n AutoScaleSettings,\n IdentityConfiguration,\n\
\ ManagedIdentityConfiguration,\n SynapseSparkCompute,\n )\n\n synapse_compute\
\ = SynapseSparkCompute(\n name=\"synapse_name\",\n resource_id=\"/subscriptions/subscription/resourceGroups/group/providers/Microsoft.Synapse/workspaces/workspace/bigDataPools/pool\"\
,\n identity=IdentityConfiguration(\n type=\"UserAssigned\",\n \
\ user_assigned_identities=[\n ManagedIdentityConfiguration(\n\
\ resource_id=\"/subscriptions/subscription/resourceGroups/group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity\"\
\n )\n ],\n ),\n scale_settings=AutoScaleSettings(min_node_count=1,\
\ max_node_count=3, enabled=True),\n auto_pause_settings=AutoPauseSettings(delay_in_minutes=10,\
\ enabled=True),\n )\n\n\n ````\n"