Skip to content

Commit b0b7a53

Browse files
committed
fix
1 parent 6d64282 commit b0b7a53

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

articles/container-apps/java-metrics-scale-with-keda.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ To scale with Azure Container Apps platform metrics, you need a managed identity
7575
To scale with Azure Monitor metrics, you can refer to [Azure Monitor KEDA scaler](https://keda.sh/docs/2.16/scalers/azure-monitor/) to define your Container Apps scale rule.
7676
7777
Here's a list of core metadata to set up the scale rule.
78+
7879
| Metadata key | Description |
7980
|------------------------------------|-------------------------------------------------------------------------------------------------------|
8081
| tenantId | ID of the tenant that contains the Azure resource. |
@@ -171,8 +172,8 @@ Here's a sample metric snapshot for the example scale rule.
171172

172173
1. Initially, there's one replica (the `minReplicas`) for the app.
173174
1. A spike in requests causes the Java app to experience frequent JVM garbage collection (GC).
174-
1. KEDA observes the aggregated metric value for `jvm.gc.count` is increased to 140 and calculates desiredReplicas as `ceil(140/30)` = 5.
175-
1. KEDA scales out the container app's replica count to 5.
175+
1. KEDA observes the aggregated metric value for `jvm.gc.count` is increased, and calculates the `desiredReplicas` value.
176+
1. KEDA scales out the container app's replica count to 6.
176177
1. The http traffic is distributed across more replicas, reducing the average GC count.
177178
1. The GC count further decreases when no requests are coming in.
178179
1. After a cooldown period, KEDA scales the replica count down to `minReplicas=1`.

0 commit comments

Comments
 (0)