You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-apps/tutorial-scaling.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -301,16 +301,22 @@ You should prefer [HTTP scale rules](/azure/container-apps/scale-app#http) to CP
301
301
302
302
After you add a CPU or memory scale rule, you can test it by [sending requests to your container app](#send-requests) and [viewing the scaling in Azure portal](#view-scaling-in-azure-portal-optional).
303
303
304
+
After you send requests to your scale app, it might take a minute before the scale rule is triggered and the new replicas are created.
305
+
304
306
### CPU scaling
305
307
306
-
CPU scaling allows your app to scale in or out depending on how much the CPU is being used. CPU scaling doesn't allow your container app to scale to zero. For more information about this trigger, see [KEDA CPU scale trigger](https://keda.sh/docs/scalers/cpu/).
308
+
CPU scaling allows your app to scale in or out depending on how much the CPU is being used.
309
+
310
+
For example, if you create a CPU scale rule with a utilization value of `50`, Azure Container Apps creates additional replicas of your container app when the average CPU utilization for all replicas reaches 50%.
311
+
312
+
CPU scaling doesn't allow your container app to scale to zero. For more information about this trigger, see [KEDA CPU scale trigger](https://keda.sh/docs/scalers/cpu/).
307
313
308
314
Add a CPU scale rule to your container app by running the `az containerapp update` command.
309
315
310
316
> [!NOTE]
311
317
> When you use the Azure CLI to add a scale rule to a container app that already has a scale rule, the new scale rule replaces the old scale rule. To see how to add multiple scale rules, see [Multiple scale rules](#multiple-scale-rules).
312
318
313
-
Before running the following command, replace the `<PLACEHOLDERS>` with your values. For this tutorial, replace `<UTILIZATION>` with `1`. This causes your container app to scale when its CPU utilization reaches 1%. This value is for the purpose of demonstration only. The number of replicas is limited to 10 by the `--max-replicas 10` you specified when running `az containerapp update`.
319
+
Before running the following command, replace the `<PLACEHOLDERS>` with your values. For this tutorial, replace `<UTILIZATION>` with `1`. This causes your container app to scale when the average CPU utilization for all replicas reaches 1%. This value is for the purpose of demonstration only. The number of replicas is limited to 10 by the `--max-replicas 10` you specified when running `az containerapp update`.
314
320
315
321
# [Bash](#tab/bash)
316
322
@@ -342,14 +348,18 @@ az containerapp update `
342
348
343
349
### Memory scaling
344
350
345
-
Memory scaling allows your app to scale in or out depending on how much memory is being used. Memory scaling doesn't allow your container app to scale to zero. For more information about this trigger, see [KEDA memory scale trigger](https://keda.sh/docs/scalers/memory/).
351
+
Memory scaling allows your app to scale in or out depending on how much memory is being used.
352
+
353
+
For example, if you create a memory scale rule with a utilization value of `50`, Azure Container Apps creates additional replicas of your container app when the average memory utilization for all replicas reaches 50%.
354
+
355
+
Memory scaling doesn't allow your container app to scale to zero. For more information about this trigger, see [KEDA memory scale trigger](https://keda.sh/docs/scalers/memory/).
346
356
347
357
Add a memory scale rule to your container app by running the `az containerapp update` command.
348
358
349
359
> [!NOTE]
350
360
> When you use the Azure CLI to add a scale rule to a container app that already has a scale rule, the new scale rule replaces the old scale rule. To see how to add multiple scale rules, see [Multiple scale rules](#multiple-scale-rules).
351
361
352
-
Before running the following command, replace the `<PLACEHOLDERS>` with your values. For this tutorial, replace `<UTILIZATION>` with `1`. This causes your container app to scale when its memory utilization reaches 1%. This value is for the purpose of demonstration only. The number of replicas is limited to 10 by the `--max-replicas 10` you specified when running `az containerapp update`.
362
+
Before running the following command, replace the `<PLACEHOLDERS>` with your values. For this tutorial, replace `<UTILIZATION>` with `1`. This causes your container app to scale when the average memory utilization for all replicas reaches 1%. This value is for the purpose of demonstration only. The number of replicas is limited to 10 by the `--max-replicas 10` you specified when running `az containerapp update`.
0 commit comments