Scale an application in Azure Spring Apps

Note

Azure Spring Apps is the new name for the Azure Spring Cloud service. Although the service has a new name, you'll see the old name in some places for a while as we work to update assets such as screenshots, videos, and diagrams.

This article applies to: ✔️ Java ✔️ C#

This article applies to: ✔️ Basic/Standard tier ✔️ Enterprise tier

This article demonstrates how to scale any Spring application using the Azure Spring Apps dashboard in the Azure portal.

Scale your application up and down by modifying its number of virtual CPUs (vCPUs) and amount of memory. Scale your application in and out by modifying the number of application instances.

After you finish, you'll know how to make quick manual changes to each application in your service. Scaling takes effect in seconds and doesn't require any code changes or redeployment.

Prerequisites

To follow these procedures, you need:

  1. Sign in to the Azure portal.

  2. Go to your Azure Spring Apps Overview page.

  3. Select the resource group that contains your service.

  4. Select the Apps tab under Settings in the menu on the left side of the page.

  5. Select the application you want to scale. In this example, select the application named account-service. You should then see the application's Overview page.

  6. Go to the Scale tab under Settings in the menu on the left side of the page. You should see options for the scaling the attributes shown in the following section.

Scale your application

If you modify the scaling attributes, keep the following notes in mind:

  • CPUs: The maximum number of CPUs per application instance is four. The total number of CPUs for an application is the value set here multiplied by the number of application instances.

  • Memory/GB: The maximum amount of memory per application instance is 8 GB. The total amount of memory for an application is the value set here multiplied by the number of application instances.

  • App instance count: In the Standard tier, you can scale out to a maximum of 20 instances. This value changes the number of separate running instances of the Spring application.

Be sure to select Save to apply your scaling settings.

The Scale service in the Azure portal

After a few seconds, the changes you made are displayed on the Overview page, with more details available in the Application instances tab. Scaling doesn't require any code changes or redeployment.

Upgrade to the Standard tier

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.

Next steps

This example explained how to manually scale an application in Azure Spring Apps. To learn how to monitor an application by setting up alerts, see Set-up autoscale.