You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/autoscale/autoscale-understanding-settings.md
+18-11Lines changed: 18 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,20 @@ ms.reviewer: riroloff
8
8
---
9
9
# Autoscale settings
10
10
11
-
Autoscale settings help you provision just the right mount of resources to support the load on your application. Configure autoscale settings to be triggered based on metrics that indicate load or performance, or triggered at a scheduled date and time. This article takes a detailed look at the anatomy of an autoscale setting. The article begins with the schema and properties of a setting, and then walks through the different profile types that can be configured. Finally, the article discusses how the autoscale feature in Azure evaluates which profile to execute at any given time.
11
+
Autoscale settings help you provision just the right mount of resources to support the load on your application. Configure autoscale settings to be triggered based on metrics that indicate load or performance, or triggered at a scheduled date and time.
12
+
13
+
This article gives a detailed description of the autoscale settings.
12
14
13
15
## Autoscale setting schema
14
16
15
-
To illustrate the autoscale setting schema, the following autoscale setting is used. It's important to note that this autoscale setting has:
16
-
- One profile.
17
-
- Two metric rules in this profile: one for scale-out, and one for scale-in.
18
-
- The scale-out rule is triggered when the virtual machine scale set's average percentage CPU metric is greater than 85 percent for the past 10 minutes.
19
-
- The scale-in rule is triggered when the virtual machine scale set's average is less than 60 percent for the past minute.
17
+
The [Autoscale ARM template resource definition](https://learn.microsoft.com/en-us/azure/templates/microsoft.insights/autoscalesettings?pivots=deployment-language-arm-template#autoscaleprofile-1) contains a description of all template elements.
18
+
19
+
The example below has the following settings:
20
+
21
+
- A single, default profile.
22
+
- The profile has two rules. The first rule scales out, the second scales in.
23
+
- The scale-out rule is triggered when the virtual machine scale set's average percentage CPU metric is greater than 85 percent for the past 10 minutes.
24
+
- The scale-in rule is triggered when the virtual machine scale set's average is less than 60 percent for the past minute.
20
25
21
26
> [!NOTE]
22
27
> A setting can have multiple profiles. To learn more, see the [profiles](#autoscale-profiles) section. A profile can also have multiple scale-out rules and scale-in rules defined. To see how they are evaluated, see the [evaluation](#autoscale-evaluation) section.
@@ -82,18 +87,20 @@ To illustrate the autoscale setting schema, the following autoscale setting is u
82
87
}
83
88
```
84
89
90
+
The table below describes the elements in the above autoscale setting's JSON.
91
+
85
92
| Section | Element name |Portal name| Description |
86
93
| --- | --- | --- |--- |
87
94
| Setting | ID ||The autoscale setting's resource ID. Autoscale settings are an Azure Resource Manager resource. |
88
95
| Setting | name ||The autoscale setting name. |
89
96
| Setting | location ||The location of the autoscale setting. This location can be different from the location of the resource being scaled. |
90
97
| properties | targetResourceUri ||The resource ID of the resource being scaled. You can only have one autoscale setting per resource. |
91
98
| properties | profiles | Scale condition |An autoscale setting is composed of one or more profiles. Each time the autoscale engine runs, it executes one profile. |
92
-
|profile| name ||The name of the profile. You can choose any name that helps you identify the profile. |
93
-
|profile|Capacity.maximum | Instance limits - Maximum |The maximum capacity allowed. It ensures that autoscale doesn't scale your resource above this number when executing the profile. |
94
-
|profile|Capacity.minimum | Instance limits - Minimum |The minimum capacity allowed. It ensures that autoscale doesn't scale your resource below this number when executing the profile |
95
-
|profile|Capacity.default | Instance limits - Default |If there's a problem reading the resource metric (in this case, the CPU of “vmss1”), and the current capacity is below the default, autoscale scales out to the default. This ensures the availability of the resource. If the current capacity is already higher than the default capacity, autoscale does not scale in. |
96
-
|profile| rules | Rules |Autoscale automatically scales between the maximum and minimum capacities, by using the rules in the profile. You can have multiple rules in a profile. Typically there are two rules: one to determine when to scale out, and the other to determine when to scale in. |
99
+
|profiles| name ||The name of the profile. You can choose any name that helps you identify the profile. |
100
+
|profiles|capacity.maximum | Instance limits - Maximum |The maximum capacity allowed. It ensures that autoscale doesn't scale your resource above this number when executing the profile. |
101
+
|profiles|capacity.minimum | Instance limits - Minimum |The minimum capacity allowed. It ensures that autoscale doesn't scale your resource below this number when executing the profile |
102
+
|profiles|capacity.default | Instance limits - Default |If there's a problem reading the resource metric, and the current capacity is below the default, autoscale scales out to the default. This ensures the availability of the resource. If the current capacity is already higher than the default capacity, autoscale does not scale in. |
103
+
|profiles| rules | Rules |Autoscale automatically scales between the maximum and minimum capacities, by using the rules in the profile. You can have multiple rules in a profile. Typically there are two rules: one to determine when to scale out, and the other to determine when to scale in. |
97
104
| rule | metricTrigger | Scale rule |Defines the metric condition of the rule. |
98
105
| metricTrigger | metricName | Metric name |The name of the metric. |
99
106
| metricTrigger | metricResourceUri ||The resource ID of the resource that emits the metric. In most cases, it is the same as the resource being scaled. In some cases, it can be different. For example, you can scale a virtual machine scale set based on the number of messages in a storage queue. |
0 commit comments