Skip to content

Commit 8a18695

Browse files
committed
wip 0210
1 parent 543d9b5 commit 8a18695

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

articles/azure-monitor/autoscale/autoscale-understanding-settings.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,20 @@ ms.reviewer: riroloff
88
---
99
# Autoscale settings
1010

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.
1214

1315
## Autoscale setting schema
1416

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.
2025

2126
> [!NOTE]
2227
> 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
8287
}
8388
```
8489

90+
The table below describes the elements in the above autoscale setting's JSON.
91+
8592
| Section | Element name |Portal name| Description |
8693
| --- | --- | --- |--- |
8794
| Setting | ID | |The autoscale setting's resource ID. Autoscale settings are an Azure Resource Manager resource. |
8895
| Setting | name | |The autoscale setting name. |
8996
| Setting | location | |The location of the autoscale setting. This location can be different from the location of the resource being scaled. |
9097
| properties | targetResourceUri | |The resource ID of the resource being scaled. You can only have one autoscale setting per resource. |
9198
| 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. |
97104
| rule | metricTrigger | Scale rule |Defines the metric condition of the rule. |
98105
| metricTrigger | metricName | Metric name |The name of the metric. |
99106
| 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

Comments
 (0)