Skip to content

Commit e92b06b

Browse files
committed
[APIM] Autoscale rule updates
1 parent 6519da9 commit e92b06b

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed

articles/api-management/api-management-howto-autoscale.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
---
2-
# Mandatory fields. See more on aka.ms/skyeye/meta.
32
title: Configure autoscale of an Azure API Management instance | Microsoft Docs
4-
description: This article describes how to set up autoscale behavior for an Azure API Management instance.
3+
description: This article describes how to set up rules to control autoscale behavior for an Azure API Management instance.
54
services: api-management
65
author: dlepow
76

87
ms.service: api-management
98
ms.topic: how-to
10-
ms.date: 03/30/2023
9+
ms.date: 02/06/2024
1110
ms.author: danlep
1211
ms.custom: engagement-fy23
1312
---
1413

1514
# Automatically scale an Azure API Management instance
1615

17-
An Azure API Management service instance can scale automatically based on a set of rules. This behavior can be enabled and configured through [Azure Monitor autoscale](../azure-monitor/autoscale/autoscale-overview.md#supported-services-for-autoscale) and is currently supported only in the **Standard** and **Premium** tiers of the Azure API Management service.
16+
An Azure API Management service instance can scale automatically based on a set of rules. This behavior can be enabled and configured through [Azure Monitor autoscale](../azure-monitor/autoscale/autoscale-overview.md#supported-services-for-autoscale) and is currently supported only in the **Basic**, **Standard**, and **Premium** tiers of the Azure API Management service.
1817

1918
The article walks through the process of configuring autoscale and suggests optimal configuration of autoscale rules.
2019

@@ -31,13 +30,13 @@ To follow the steps from this article, you must:
3130
+ Understand the concept of [capacity](api-management-capacity.md) of an API Management instance.
3231
+ Understand [manual scaling](upgrade-and-scale.md) of an API Management instance, including cost consequences.
3332

34-
[!INCLUDE [premium-standard.md](../../includes/api-management-availability-premium-standard.md)]
33+
[!INCLUDE [premium-standard-basic.md](../../includes/api-management-availability-premium-standard-basic.md)]
3534

3635
## Azure API Management autoscale limitations
3736

3837
Certain limitations and consequences of scaling decisions need to be considered before configuring autoscale behavior.
3938

40-
+ The pricing tier of your API Management instance determines the [maximum number of units](upgrade-and-scale.md#upgrade-and-scale) you may scale to. For example, the **Standard tier** can be scaled to 4 units. You can add any number of units to the **Premium** tier.
39+
+ The [pricing tier](api-management-features.md) of your API Management instance determines the [maximum number of units](upgrade-and-scale.md#upgrade-and-scale) you may scale to. For example, the **Standard tier** can be scaled to 4 units. You can add any number of units to the **Premium** tier.
4140
+ The scaling process takes at least 20 minutes.
4241
+ If the service is locked by another operation, the scaling request will fail and retry automatically.
4342
+ If your service instance is deployed in multiple regions (locations), only units in the **Primary location** can be autoscaled with Azure Monitor autoscale. Units in other locations can only be scaled manually.
@@ -58,16 +57,16 @@ Follow these steps to configure autoscale for an Azure API Management service:
5857

5958
1. Define a new scale-out rule.
6059

61-
For example, a scale-out rule could trigger addition of 1 API Management unit, when the average capacity metric over the previous 30 minutes exceeds 80%. The following table provides configuration for such a rule.
60+
For example, a scale-out rule could trigger addition of 1 API Management unit, when the average capacity metric over the previous 30 minutes exceeds 80%. The following table provides an example configuration for such a rule. Review the preceding [limitations](#azure-api-management-autoscale-limitations) when defining a scale-out rule in your environment.
6261

6362
| Parameter | Value | Notes |
6463
|-----------------------|-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
6564
| Metric source | Current resource | Define the rule based on the current API Management resource metrics. |
6665
| *Criteria* | | |
67-
| Metric name | Capacity | Capacity metric is an API Management metric reflecting usage of resources by an Azure API Management instance. |
66+
| Metric name | Capacity | [Capacity metric](api-management-capacity.md) is an API Management metric reflecting usage of resources by an Azure API Management instance. |
6867
| Location | Select the primary location of the API Management instance | |
6968
| Operator | Greater than | |
70-
| Metric threshold | 80% | The threshold for the averaged capacity metric. |
69+
| Metric threshold | 70% | The threshold for the averaged capacity metric. For considerations on setting this threshold, see [Using capacity for scaling decisions](api-management-capacity.md#use-capacity-for-scaling-decisions). |
7170
| Duration (in minutes) | 30 | The timespan to average the capacity metric over is specific to usage patterns. The longer the duration, the smoother the reaction will be. Intermittent spikes will have less effect on the scale-out decision. However, it will also delay the scale-out trigger. |
7271
| Time grain statistic | Average | |
7372
|*Action* | | |
@@ -78,11 +77,11 @@ Follow these steps to configure autoscale for an Azure API Management service:
7877
1. Select **Add** to save the rule.
7978
1. To add another rule, select **Add a rule**.
8079

81-
This time, a scale-in rule needs to be defined. It will ensure resources aren't being wasted, when the usage of APIs decreases.
80+
This time, a scale-in rule needs to be defined. It ensures that resources aren't being wasted, when the usage of APIs decreases.
8281

8382
1. Define a new scale-in rule.
8483

85-
For example, a scale-in rule could trigger a removal of 1 API Management unit when the average capacity metric over the previous 30 minutes has been lower than 35%. The following table provides configuration for such a rule.
84+
For example, a scale-in rule could trigger a removal of 1 API Management unit when the average capacity metric over the previous 30 minutes is lower than 35%. The following table provides an example configuration for such a rule.
8685

8786
| Parameter | Value | Notes |
8887
|-----------------------|-------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
@@ -108,9 +107,9 @@ Follow these steps to configure autoscale for an Azure API Management service:
108107
109108
:::image type="content" source="media/api-management-howto-autoscale/07.png" alt-text="Screenshot showing how to set instance limits in the portal.":::
110109

111-
1. Select **Save**. Your autoscale has been configured.
110+
1. Select **Save**. Your autoscale is configured.
112111

113-
## Next steps
112+
## Related content
114113

115114
- [How to deploy an Azure API Management service instance to multiple Azure regions](api-management-howto-deploy-multi-region.md)
116115
- [Optimize and save on your cloud spending](../cost-management-billing/costs/quick-acm-cost-analysis.md?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
author: dlepow
3+
ms.service: api-management
4+
ms.topic: include
5+
ms.date: 02/06/2024
6+
ms.author: danlep
7+
---
8+
9+
## Availability
10+
11+
> [!IMPORTANT]
12+
> This feature is available in the **Premium**, **Standard**, and **Basic** tiers of API Management.
13+
>
14+
> For feature availability in the v2 tiers (preview), see the [v2 tiers overview](../articles/api-management/v2-service-tiers-overview.md#features-and-limitations).

0 commit comments

Comments
 (0)