Skip to content

Commit bda8f18

Browse files
committed
Add details about CPU/memory scaling.
1 parent c7de268 commit bda8f18

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

articles/container-apps/tutorial-scaling.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,16 +301,22 @@ You should prefer [HTTP scale rules](/azure/container-apps/scale-app#http) to CP
301301

302302
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).
303303

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+
304306
### CPU scaling
305307

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/).
307313

308314
Add a CPU scale rule to your container app by running the `az containerapp update` command.
309315

310316
> [!NOTE]
311317
> 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).
312318
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`.
314320

315321
# [Bash](#tab/bash)
316322

@@ -342,14 +348,18 @@ az containerapp update `
342348

343349
### Memory scaling
344350

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/).
346356

347357
Add a memory scale rule to your container app by running the `az containerapp update` command.
348358

349359
> [!NOTE]
350360
> 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).
351361
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`.
353363

354364
# [Bash](#tab/bash)
355365

0 commit comments

Comments
 (0)