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/scale-app.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,9 @@ ms.custom: ignite-fall-2021
12
12
13
13
# Set scaling rules in Azure Container Apps
14
14
15
-
Azure Container Apps manages automatic horizontal scaling through a set of declarative scaling rules. As a container app scales out, new instances of the container app are created on-demand. These instances are known as replicas. When you first create a container app, the scale rule is set to zero. No charges will be incurred when an application is scaled to zero.
15
+
Azure Container Apps manages automatic horizontal scaling through a set of declarative scaling rules. As a container app scales out, new instances of the container app are created on-demand. These instances are known as replicas. When you first create a container app, the scale rule is set to zero. No charges are incurred when an application scales to zero.
16
16
17
-
Scaling rules are defined in `resources.properties.template.scale` section of the JSON configuration file. When you add or edit existing scaling rules, a new revision of your container app will be created automatically with the new configuration. A revision is an immutable snapshot of your container app and it gets created automatically when certain aspects of your application are updated (scaling rules, Dapr settings, template configuration etc.). See [Change types](./revisions.md#change-types) to learn about the type of changes that will/won't trigger a new revision.
17
+
Scaling rules are defined in `resources.properties.template.scale` section of the JSON configuration file. When you add or edit existing scaling rules, a new revision of your container is automatically created with the new configuration. A revision is an immutable snapshot of your container app and it gets created automatically when certain aspects of your application are updated (scaling rules, Dapr settings, template configuration etc.). See the [Change types](./revisions.md#change-types)section to learn about the type of changes that do or don't trigger a new revision.
18
18
19
19
There are two scale properties that apply to all rules in your container app:
20
20
@@ -47,7 +47,7 @@ With an HTTP scaling rule, you have control over the threshold that determines w
47
47
48
48
| Scale property | Description | Default value | Min value | Max value |
49
49
|---|---|---|---|---|
50
-
|`concurrentRequests`| Once the number of requests exceeds this then another replica will be added. Replicas will continue to be added up to the `maxReplicas` amount as the number of concurrent requests increase. | 100 | 1 | n/a |
50
+
|`concurrentRequests`| Once the number of requests exceeds this then another replica is added. Replicas will continue to be added up to the `maxReplicas` amount as the number of concurrent requests increase. | 100 | 1 | n/a |
51
51
52
52
In the following example, the container app scales out up to five replicas and can scale down to zero. The scaling threshold is set to 100 concurrent requests per second.
53
53
@@ -81,9 +81,11 @@ In the following example, the container app scales out up to five replicas and c
81
81
### Add an HTTP scale trigger
82
82
83
83
> [!NOTE]
84
-
> Revisions are immutables. Changing the scale rules will automatically generate a new revision.
84
+
> Revisions are immutable. Changing scale rules automatically generates a new revision.
85
85
86
-
1. In Azure portal, select **Scale** and then select your revision from the dropdown menu.
86
+
1. Open Azure portal, and navigate to your container app.
87
+
88
+
1. Select **Scale**, then select your revision from the dropdown menu.
@@ -111,7 +113,7 @@ The following example shows how to create a scale rule based on an [Azure Servic
111
113
112
114
The container app scales according to the following behavior:
113
115
114
-
- For every 20 messages placed in the queue, a new replica will be created.
116
+
- For every 20 messages placed in the queue, a new replica is created.
115
117
- The connection string to the queue is provided as a parameter to the configuration file and referenced via the `secretRef` property.
116
118
117
119
```json
@@ -150,11 +152,11 @@ The container app scales according to the following behavior:
150
152
```
151
153
152
154
> [!NOTE]
153
-
> Upstream KEDA scale rules are defined using Kubernetes YAML, while Azure Container Apps supports ARM templates, Bicep Templates and Container Apps specific YAML. For this example, we are using ARM and therefore need to switch property names from [kebab](https://en.wikipedia.org/wiki/Naming_convention_(programming)#Delimiter-separated_words) case to [camel](https://en.wikipedia.org/wiki/Naming_convention_(programming)#Letter_case-separated_words) when translating from existing KEDA manifests.
155
+
> Upstream KEDA scale rules are defined using Kubernetes YAML, while Azure Container Apps supports ARM templates, Bicep Templates and Container Apps specific YAML. The following example uses an ARM template and therefore the rules need to switch property names from [kebab](https://en.wikipedia.org/wiki/Naming_convention_(programming)#Delimiter-separated_words) case to [camel](https://en.wikipedia.org/wiki/Naming_convention_(programming)#Letter_case-separated_words) when translating from existing KEDA manifests.
154
156
155
157
### Set up a connection string secret
156
158
157
-
To create a custom scale trigger, we must first create a connection string secret to authenticate with the different custom scalers.
159
+
To create a custom scale trigger, first create a connection string secret to authenticate with the different custom scalers.
158
160
159
161
1. In Azure portal, navigate to your container app and then select **Secrets**.
160
162
@@ -183,7 +185,7 @@ To create a custom scale trigger, we must first create a connection string secre
183
185
1. Select **Create** when you are done.
184
186
185
187
> [!NOTE]
186
-
> In multiple revision mode, adding a new scale trigger will create a new revision of your application but your old revision will still be available with the old scale rules. Use the **Revision management** page to manage their traffic allocations.
188
+
> In multiple revision mode, adding a new scale trigger creates a new revision of your application but your old revision remains available with the old scale rules. Use the **Revision management** page to manage their traffic allocations.
187
189
188
190
### KEDA scalers conversion
189
191
@@ -226,7 +228,7 @@ The following is an example of setting up an [Azure Storage Queue](https://keda.
226
228
227
229
Below is the KEDA trigger specification for an Azure Storage Queue. To set up a scale rule in Azure Container Apps, you will need the trigger `type` and any other required parameters. You can also add other optional parameters which vary based on the scaler you are using.
228
230
229
-
In this example, you will need the `accountName` and the name of the cloud environment that the queue belongs to `cloud` to set up your scaler in Azure Container Apps.
231
+
In this example, you need the `accountName` and the name of the cloud environment that the queue belongs to `cloud` to set up your scaler in Azure Container Apps.
0 commit comments