Skip to content

Commit 5886631

Browse files
Merge pull request #191806 from KarlErickson/karler-autoscale
fix MicrosoftDocs/azure-docs#89803
2 parents 997ec86 + 5d9a614 commit 5886631

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

articles/spring-cloud/how-to-setup-autoscale.md

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Set up autoscale for applications"
2+
title: "Set up autoscale for applications"
33
description: This article describes how to set up Autoscale settings for your applications using the Microsoft Azure portal or the Azure CLI.
44
author: karlerickson
55
ms.author: karler
@@ -18,7 +18,7 @@ ms.custom: devx-track-java, devx-track-azurecli
1818
This article describes how to set up Autoscale settings for your applications using the Microsoft Azure portal or the Azure CLI.
1919

2020
Autoscale is a built-in feature of Azure Spring Cloud that helps applications perform their best when demand changes. Azure Spring Cloud supports scale-out and scale-in, which includes modifying the number of app instances and load balancing.
21-
21+
2222
## Prerequisites
2323

2424
To follow these procedures, you need:
@@ -35,9 +35,9 @@ To follow these procedures, you need:
3535
4. Select the **Apps** tab under **Settings** in the menu on the left navigation pane.
3636
5. Select the application for which you want to set up Autoscale. In this example, select the application named **demo**. You should then see the application's **Overview** page.
3737
6. Go to the **Scale out** tab under **Settings** in the menu on the left navigation pane.
38-
7. Select the deployment you want to set up Autoscale. You should see options for Autoscale shown in the following section.
38+
7. Select the deployment you want to set up Autoscale. The options for Autoscale are described in the following section.
3939

40-
![Autoscale menu](./media/spring-cloud-autoscale/autoscale-menu.png)
40+
![Azure portal screenshot of **Scale out** page with `demo/default` deployment indicated.](./media/spring-cloud-autoscale/autoscale-menu.png)
4141

4242
## Set up Autoscale settings for your application in the Azure portal
4343

@@ -46,29 +46,42 @@ There are two options for Autoscale demand management:
4646
* Manual scale: Maintains a fixed instance count. In the Standard tier, you can scale out to a maximum of 500 instances. This value changes the number of separate running instances of the application.
4747
* Custom autoscale: Scales on any schedule, based on any metrics.
4848

49-
In the Azure portal, choose how you want to scale. The following figure shows the **Custom autoscale** option and mode settings.
49+
In the Azure portal, choose how you want to scale. The following figure shows the **Custom autoscale** option and mode settings.
5050

51-
![Custom autoscale](./media/spring-cloud-autoscale/custom-autoscale.png)
51+
:::image type="content" source="media/spring-cloud-autoscale/custom-autoscale.png" alt-text="Azure portal screenshot showing the **Autoscale setting** page with the **Custom autoscale** option highlighted.":::
5252

5353
## Set up Autoscale settings for your application in Azure CLI
5454

55-
You can also set Autoscale modes using the Azure CLI. The following commands create an Autoscale setting and an Autoscale rule.
55+
You can also set Autoscale modes using the Azure CLI. The following commands create an Autoscale setting and an Autoscale rule.
5656

5757
* Create Autoscale setting:
5858

5959
```azurecli
60-
az monitor autoscale create -g demo-rg --resource /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/demo-rg/providers/Microsoft.AppPlatform/Spring/autoscale/apps/demo/deployments/default --name demo-setting --min-count 1 --max-count 5 --count 1
60+
az monitor autoscale create \
61+
--resource-group demo-rg \
62+
--name demo-setting \
63+
--resource /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/demo-rg/providers/Microsoft.AppPlatform/Spring/autoscale/apps/demo/deployments/default \
64+
--min-count 1 \
65+
--max-count 5 \
66+
--count 1
6167
```
6268

6369
* Create Autoscale rule:
6470

6571
```azurecli
66-
az monitor autoscale rule create -g demo-rg --autoscale-name demo-setting --scale out 1 --cooldown 1 --condition "tomcat.global.request.total.count > 100 avg 1m where AppName == demo and Deployment == default"
72+
az monitor autoscale rule create \
73+
--resource-group demo-rg \
74+
--autoscale-name demo-setting \
75+
--scale out 1 \
76+
--cooldown 1 \
77+
--condition "tomcat.global.request.total.count > 100 avg 1m where AppName == demo and Deployment == default"
6778
```
6879

80+
For information on the available metrics, see the [User metrics options](/azure/spring-cloud/concept-metrics#user-metrics-options) section of [Metrics for Azure Spring Cloud](/azure/spring-cloud/concept-metrics).
81+
6982
## Upgrade to the Standard tier
7083

71-
If you are on the Basic tier and constrained by one or more of these limits, you can upgrade to the Standard tier. To do this, go to the **Pricing** tier menu by first selecting the **Standard tier** column and then selecting the **Upgrade** button.
84+
If you're on the Basic tier and constrained by one or more of these limits, you can upgrade to the Standard tier. To upgrade, go to the **Pricing** tier menu by first selecting the **Standard tier** column and then selecting the **Upgrade** button.
7285

7386
## Next steps
7487

0 commit comments

Comments
 (0)