Уреди

Делите путем


Scale an application in Azure Spring Apps

Note

The Basic, Standard, and Enterprise plans will be deprecated starting from mid-March, 2025, with a 3 year retirement period. We recommend transitioning to Azure Container Apps. For more information, see the Azure Spring Apps retirement announcement.

The Standard consumption and dedicated plan will be deprecated starting September 30, 2024, with a complete shutdown after six months. We recommend transitioning to Azure Container Apps. For more information, see Migrate Azure Spring Apps Standard consumption and dedicated plan to Azure Container Apps.

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

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

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

You can scale your app up and down by modifying its number of virtual CPUs (vCPUs) and amount of memory. Scale your app 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 within seconds and doesn't require any code changes or redeployment.

Prerequisites

  1. Sign in to the Azure portal.

  2. Go to your Azure Spring Apps instance.

  3. Select Apps under Settings in the navigation pane.

  4. Select the app you want to scale and then select Scale up in the navigation pane. Specify the vCPU and Memory settings using the guidelines as described in the following section.

  5. Select Scale out in the navigation pane. Specify the instance count setting as described in the following section.

Scale your application

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

  • vCPU: The total number of CPUs for an application is the value set here multiplied by the number of application instances.

  • Memory: The total amount of memory for an application is the value set here multiplied by the number of application instances.

  • instance count: This value changes the number of separate running instances of the Spring application.

Be sure to select Save to apply your scaling settings.

Screenshot of the Azure portal that shows the Scale up page for an app with Scale up highlighted.

After a few seconds, the scaling changes you make are reflected on the Overview page of the app. Select App instance in the navigation pane for details about the instance of the app.

Note

For more information about the maximum number of CPUs, the amount of memory, and the instance count, see Quotas and service plans for Azure Spring Apps.

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.