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/dapr-keda-scaling.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ ms.date: 04/10/2023
10
10
11
11
# Scale Dapr components with KEDA scalers for Azure Container Apps
12
12
13
-
When scale rules are omitted on an Azure Container Apps resource, the container app is created with a default scale rule. If the resource receives no incoming traffic over a duration of five minutes, that default rule scales all replicas down to zero. This behavior can be problematic and unexpected when leveraging Dapr components, specifically pub/sub subscriptions and input bindings.
13
+
When scale rules are omitted on an Azure Container Apps resource, the container app is created with a default scale rule. If the resource receives no incoming traffic over a duration of five minutes, that default rule scales all replicas down to zero. This behavior can be problematic and unexpected when applying Dapr components, specifically pub/sub subscriptions and input bindings.
14
14
15
-
Using KEDA scalers, you can scale your application and its Dapr sidecar when it has scaled to zero with inbound events and messages. However, configuring _both_ a Dapr component and a corresponding KEDA scaler is not intuitive.
15
+
Using KEDA scalers, you can scale your application and its Dapr sidecar when it has scaled to zero with inbound events and messages. However, configuring _both_ a Dapr component and a corresponding KEDA scaler isn't intuitive.
16
16
17
17
todo: solution - if it's redundant or complex, then why?
18
18
@@ -24,15 +24,15 @@ In this scenario:
24
24
25
25
Let’s look at the Bicep for:
26
26
- The `checkout` and `order-processor` container apps
27
-
- The Dapr Azure Serivce Bus component
27
+
- The Dapr Azure Service Bus component
28
28
29
29
todo: need actual steps - so far it's more of a scenario concept, user isn't walking through any steps.
30
30
31
31
### Publisher container app
32
32
33
-
The `checkout` publisher is a headless services that you want to run indefinitely and never scale down to zero.
33
+
The `checkout` publisher is a headless service that you want to run indefinitely and never scale down to zero.
34
34
35
-
Set the `minReplicas` to "1", which ensures the container app does not follow the default behavior.
35
+
Set the `minReplicas` to "1", which ensures the container app doesn't follow the default behavior.
In the `order-processor` subscriber, you'll add a custom scale rule on the resource for the type `azure-servicebus`. With this scale rule, KEDA can scale up the container app and its Dapr sidecar, allowing incoming messages to be processed again while order-processor is scaled to zero.
126
+
In the `order-processor` subscriber, add a custom scale rule on the resource for the type `azure-servicebus`. With this scale rule, KEDA can scale up the container app and its Dapr sidecar, allowing incoming messages to be processed again while order-processor is scaled to zero.
0 commit comments