|
| 1 | +--- |
| 2 | +title: How to deploy large CPU and memory applications in Azure Spring Apps in the Enterprise tier |
| 3 | +description: Learn how to deploy large CPU and memory applications in the Enterprise tier for Azure Spring Apps. |
| 4 | +author: karlerickson |
| 5 | +ms.author: haital |
| 6 | +ms.service: spring-apps |
| 7 | +ms.topic: how-to |
| 8 | +ms.date: 03/17/2023 |
| 9 | +ms.custom: devx-track-java, devx-track-azurecli |
| 10 | +--- |
| 11 | + |
| 12 | +# Deploy large CPU and memory applications in Azure Spring Apps in the Enterprise tier |
| 13 | + |
| 14 | +**This article applies to:** ❌ Basic/Standard tier ✔️ Enterprise tier |
| 15 | + |
| 16 | +This article shows how to deploy large CPU and memory applications in Azure Spring Apps to support CPU intensive or memory intensive workloads. Support for large applications is currently available only in the Enterprise tier, which supports the CPU and memory combinations as shown in the following table. |
| 17 | + |
| 18 | +| CPU (cores) | Memory (GB) | |
| 19 | +| ----------- | ----------- | |
| 20 | +| 4 | 16 | |
| 21 | +| 6 | 24 | |
| 22 | +| 8 | 32 | |
| 23 | + |
| 24 | +## Prerequisites |
| 25 | + |
| 26 | +- An Azure Spring Apps service instance. |
| 27 | +- [The Azure CLI](/cli/azure/install-azure-cli). |
| 28 | + |
| 29 | +## Create a large CPU and memory application |
| 30 | + |
| 31 | +You can use the Azure portal or the Azure CLI to create applications. |
| 32 | + |
| 33 | +### [Azure portal](#tab/azure-portal) |
| 34 | + |
| 35 | +Use the following steps to create a large CPU and memory application using the Azure portal. |
| 36 | + |
| 37 | +1. Go to your Azure Spring Apps service instance. |
| 38 | + |
| 39 | +1. In the navigation pane, select **Apps**, and then select **Create app**. |
| 40 | + |
| 41 | +1. On the **Create App** page, provide a name for **App name** and select the desired **vCpu** and **Memory** values for your application. |
| 42 | + |
| 43 | +1. Select **Create**. |
| 44 | + |
| 45 | + :::image type="content" source="media/how-to-create-large-application/create-large-application.png" lightbox="media/how-to-create-large-application/create-large-application.png" alt-text="Screenshot of the Azure portal Create App page in Azure Spring Apps showing configuration settings for a new app."::: |
| 46 | + |
| 47 | +### [Azure CLI](#tab/azure-cli) |
| 48 | + |
| 49 | +The following command creates an application with the CPU set to eight core processors and memory set to 32 gigabytes. |
| 50 | + |
| 51 | +```azurecli |
| 52 | +az spring app create \ |
| 53 | + --resource-group <resource-group-name> \ |
| 54 | + --service <Azure-Spring-Apps-service-instance-name> \ |
| 55 | + --name <Spring-app-name> \ |
| 56 | + --cpu 8 \ |
| 57 | + --memory 32Gi |
| 58 | +``` |
| 59 | + |
| 60 | +--- |
| 61 | + |
| 62 | +## Scale up and down for large CPU and memory applications |
| 63 | + |
| 64 | +To adjust your application's CPU and memory settings, you can use the Azure portal or Azure CLI commands. |
| 65 | + |
| 66 | +### [Azure portal](#tab/azure-portal) |
| 67 | + |
| 68 | +Use the following steps to scale up or down a large CPU and memory application. |
| 69 | + |
| 70 | +1. On the overview page of your app, select **Scale up** in the navigation pane. |
| 71 | + |
| 72 | +1. Select the preferred **vCpu** and **Memory** values. |
| 73 | + |
| 74 | + :::image type="content" source="media/how-to-create-large-application/scale-large-application.png" lightbox="media/how-to-create-large-application/scale-large-application.png" alt-text="Screenshot of Azure portal Configuration page showing how to scale large app."::: |
| 75 | + |
| 76 | +1. Select **Save**. |
| 77 | + |
| 78 | +### [Azure CLI](#tab/azure-cli) |
| 79 | + |
| 80 | +The following command scales up an app to have high CPU and memory values. |
| 81 | + |
| 82 | +```azurecli |
| 83 | +az spring app scale \ |
| 84 | + --resource-group <resource-group-name> \ |
| 85 | + --service <Azure-Spring-Apps-service-instance-name> \ |
| 86 | + --name <Spring-app-name> \ |
| 87 | + --cpu 8 \ |
| 88 | + --memory 32Gi |
| 89 | +``` |
| 90 | + |
| 91 | +The following command scales down an app to have low CPU and memory values. |
| 92 | + |
| 93 | +```azurecli |
| 94 | +az spring app scale \ |
| 95 | + --resource-group <resource-group-name> \ |
| 96 | + --service <Azure-Spring-Apps-service-instance-name> \ |
| 97 | + --name <Spring-app-name> \ |
| 98 | + --cpu 1 \ |
| 99 | + --memory 2Gi |
| 100 | +``` |
| 101 | + |
| 102 | +--- |
| 103 | + |
| 104 | +## Next steps |
| 105 | + |
| 106 | +- [Build and deploy apps to Azure Spring Apps](/azure/spring-apps/quickstart-deploy-apps) |
| 107 | +- [Scale an application in Azure Spring Apps](/azure/spring-apps/how-to-scale-manual) |
0 commit comments