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-multiprofile.md
+42-22Lines changed: 42 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,38 +15,58 @@ ms.reviewer: akkumari
15
15
16
16
# Autoscale with multiple profiles
17
17
18
+
This article explains the different profiles in autoscale and how to use them.
19
+
18
20
You can have one or more profiles in your autoscale setting.
19
-
A default profile is automatically created. The default profile isn't dependent on a schedule. Add more profiles such as a recurring profile, or a profile with a fixed date and time range.
20
21
21
-
Each time the autoscale service runs, the profiles are checked in the following order:
22
+
There are three types of profile:
23
+
24
+
* Recurring profiles. A recurring profile is valid for a specific time range and repeats on the selected days of the week.
25
+
* Fixed date and time profiles. A profile that is valid for a specific date and time range.
26
+
* The default profile. The default profile is created automatically and isn't dependent on a schedule. The default profile can't be deleted.
27
+
28
+
Each time the autoscale service runs, the profiles are evaluated in the following order:
29
+
30
+
1. Fixed date profiles
31
+
1. Recurring profiles
32
+
1. Default profile
33
+
34
+
If a profile's date and time conditions are met, autoscale will apply that profile's limits and rules. Only the first applicable profile is used. All other profiles are ignored until the next run. If you have a rule that you want to use at all times, include the rule in all of your profiles.
35
+
36
+
:::image type="content" source="./media/autoscale-multiple-profiles/autoscale-default-recurring-profiles.png" alt-text="A screenshot showing an autoscale setting with default and recurring profile or scale condition":::
37
+
38
+
The example above shows an autoscale setting with a default profile and recurring profile as follows.
39
+
40
+
Default profile:
41
+
42
+
* Minimum instances = 2
43
+
* Maximum instances = 10
44
+
* Scale out when the average request count is greater than 10
45
+
* Scale in when the average request count is less than three
22
46
23
-
1. Fixed Date profile
24
-
1. Recurring profile
25
-
1. Default ("Always") profile
47
+
Recurring profile:
26
48
27
-
When a profile's conditions are met, autoscale will apply that profiles limits and rules. Only the first applicable profile is applied. Any other profiles are ignored until the next run. If you always want to implement a given rule, include the rule in all profiles.
49
+
* Minimum instances = 3
50
+
* Maximum instances = 10
51
+
* Scale out when CPU% exceeds 50
52
+
* Scale in when CPU% is below 20
53
+
* Repeat this profile every Monday, between 6 AM and 6 PM Eastern Time
28
54
29
-
The example below shows an autoscale setting with a default profile as follows:
55
+
On Monday after 6 AM, the next time the autoscale service runs, the recurring profile will be used. If the instance count is two, autoscale scales to the new minimum of three. Autoscale continues to use this profile and scales based on CPU% until Monday at 6 PM.
30
56
31
-
+ Minimum instances = 2
32
-
+ Maximum instances = 10
33
-
+ Scale out when the average request count is greater than 10
34
-
+ Scale in when the average request count is less than three
57
+
At all other times scaling will be done according to the default profile, based on the number of requests.
58
+
After 6 PM on Monday, autoscale switches to the default profile. If, for example the number of instances at the time is 12, autoscale scales in to 10, which the maximum allowed for the default profile.
35
59
36
-
An additional, recurring profile set for Monday has the following settings:
60
+
## Multiple profiles using templates and CLI
37
61
38
-
+ Minimum instances = 3
39
-
+ Maximum instances = 10
40
-
+ Scale out when CPU% exceeds 50
41
-
+ Scale in when CPU% is below 20
42
-
+ Repeat this profile every Monday, between 6 AM and 6 PM Eastern Time
62
+
When creating multiple profiles using templates and the CLI,
43
63
44
-
On Monday after 6 AM, the next time the autoscale service runs, the recurring profile will be used. If the instance count is two, autoscale scales to the new minimum of three. Until Monday at 6 PM, autoscale continues to use this profile and scales based on CPU%. At all other times scaling will be based on the number of requests and the minimum number of instances is 2.
45
-
After 6 PM on Monday, autoscale switches back to the default profile. If, for example the number of instances at the time is 12, autoscale scales in to 10, the maximum allowed for the default profile.
64
+
#### [ARM templates](#tab/templates)
46
65
47
-
:::image type="content" source="./media/autoscale-best-practices/autoscale-best-practices-multi-profile1-small.png" alt-text="A screenshot showing an autoscale settings default profile or scale condition":::
0 commit comments