Skip to content

Commit bc7eca0

Browse files
committed
Incorporate review feedback.
1 parent b88f7ca commit bc7eca0

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

articles/container-apps/tutorial-scaling.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: container-apps
55
author: craigshoemaker
66
ms.service: azure-container-apps
77
ms.topic: tutorial
8-
ms.date: 03/10/2025
8+
ms.date: 03/20/2025
99
ms.author: cshoe
1010
ms.custom: devx-track-azurecli
1111
ms.devlang: azurecli
@@ -255,9 +255,9 @@ In the first shell, where you ran the `az containerapp logs show` command, the o
255255
"TimeStamp":"2023-08-01 18:09:52 +0000 UTC",
256256
"Type":"Normal",
257257
"ContainerAppName":"my-container-app",
258-
"RevisionName":"my-container-app--9uj51l6",
259-
"ReplicaName":"my-container-app--9uj51l6-5f96557ffb-f795d",
260-
"Msg":"Replica 'my-container-app--9uj51l6-5f96557ffb-f795d' has been scheduled to run on a node.",
258+
"RevisionName":"my-container-app--00001111",
259+
"ReplicaName":"my-container-app--00001111-aaaaa22222-bbbb",
260+
"Msg":"Replica 'my-container-app--00001111-aaaaa22222-bbbb' has been scheduled to run on a node.",
261261
"Reason":"AssigningReplica",
262262
"EventSource":"ContainerAppController",
263263
"Count":0
@@ -297,17 +297,20 @@ The following screenshot shows a zoomed view of how the requests received by you
297297

298298
## CPU and memory scaling
299299

300-
You should prefer [HTTP scale rules](/azure/container-apps/scale-app#http) to CPU or memory scale rules when possible.
301-
302-
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).
300+
You should prefer [HTTP scale rules](/azure/container-apps/scale-app#http) to CPU or memory scale rules when possible. CPU and memory scaling don't allow your container app to scale to zero.
303301

304302
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).
305303

306304
### CPU scaling
307305

308-
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 0. For more information about this trigger, see [KEDA CPU scale trigger](https://keda.sh/docs/scalers/cpu/).
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/).
307+
308+
Add a CPU scale rule to your container app by running the `az containerapp update` command.
309+
310+
> [!NOTE]
311+
> 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).
309312
310-
Add a CPU scale rule to your container app by running the `az containerapp update` command. Replace the `<PLACEHOLDERS>` with your values. The CPU utilization value is the percentage of CPU utilization at which you want to scale your app.
313+
Before running the following command, replace the `<PLACEHOLDERS>` with your values.
311314

312315
# [Bash](#tab/bash)
313316

@@ -339,9 +342,14 @@ az containerapp update `
339342

340343
### Memory scaling
341344

342-
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 0. For more information about this trigger, see [KEDA memory scale trigger](https://keda.sh/docs/scalers/memory/).
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/).
346+
347+
Add a memory scale rule to your container app by running the `az containerapp update` command.
348+
349+
> [!NOTE]
350+
> 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).
343351
344-
Add a memory scale rule to your container app by running the `az containerapp update` command. Replace the `<PLACEHOLDERS>` with your values. The memory utilization value is the percentage of memory utilization at which you want to scale your app.
352+
Before running the following command, replace the `<PLACEHOLDERS>` with your values. The memory utilization value is the percentage of memory utilization at which you want to scale your app.
345353

346354
# [Bash](#tab/bash)
347355

0 commit comments

Comments
 (0)