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/azure-functions/flex-consumption-how-to.md
+26-12Lines changed: 26 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -291,7 +291,7 @@ You can use Maven to create a Flex Consumption hosted function app and required
291
291
292
292
1. (Optional) Customize the Flex Consumption plan in your Maven deployment by also including these elements in the `<plugin>.<configuration>` section: .
293
293
294
-
+ `<instanceSize>` - sets the [instance memory](./flex-consumption-plan.md#instance-memory) size for the function app. The default value is `2048`.
294
+
+ `<instanceSize>` - sets the [instance memory](./flex-consumption-plan.md#instance-sizes) size for the function app. The default value is `2048`.
295
295
+ `<maximumInstances>` - sets the highest value for the maximum instances count of the function app.
296
296
+ `<alwaysReadyInstances>` - sets the [always ready instance counts](flex-consumption-plan.md#always-ready-instances) with child elements for HTTP trigger groups (`<http>`), Durable Functions groups (`<durable>`), and other specific triggers (`<my_function>`). When you set any instance count greater than zero, you're charged for these instances whether your functions execute or not. For more information, see [Billing](flex-consumption-plan.md#billing).
297
297
@@ -437,7 +437,7 @@ To configure deployment settings when you create your function app in the Flex C
437
437
Use the [`az functionapp create`] command and supply these extra options that customize deployment storage:
438
438
439
439
| Parameter | Description |
440
-
|--|--|--|
440
+
|--|--|
441
441
|`--deployment-storage-name`| The name of the deployment storage account. |
442
442
|`--deployment-storage-container-name`| The name of the container in the account to contain your app's deployment package. |
443
443
|`--deployment-storage-auth-type`| The authentication type to use for connecting to the deployment storage account. Accepted values include `StorageAccountConnectionString`, `UserAssignedIdentity`, and `SystemAssignedIdentity`. |
@@ -494,7 +494,7 @@ You can't currently configure deployment storage for your app in Azure using Vis
494
494
495
495
## Configure instance memory
496
496
497
-
The instance memory size used by your Flex Consumption plan can be explicitly set when you create your app. For more information about supported sizes, see [Instance memory](flex-consumption-plan.md#instance-memory).
497
+
The instance memory size used by your Flex Consumption plan can be explicitly set when you create your app. For more information about supported sizes, see [Instance sizes](flex-consumption-plan.md#instance-sizes).
498
498
499
499
To set an instance memory size that's different from the default when creating your app:
500
500
@@ -731,15 +731,29 @@ When your app is connected to Application Insights, you can better analyze your
731
731
732
732
+ Use "Performance" to analyze response times and dependencies
733
733
+ Use "Failures" to identify any errors occurring after migration
734
-
+ Create custom queries in "Logs" to analyze function behavior:
734
+
+ Create custom queries in "Logs" to analyze function behavior. For example:
Use this query to analyze the number of instances that were actively processing your function:
746
+
747
+
```kusto
748
+
let _startTime = ago(20m); //Adjust start time as needed
749
+
let _endTime = now(); //Adjust end time as needed
750
+
let bins = 1s; //Adjust bin as needed - this will give per second results
751
+
requests
752
+
| where operation_Name == 'EventHubsTrigger' //Replace with the name of the function in the function app that you are analyzing
753
+
| where timestamp between(_startTime .. _endTime)
754
+
| make-series dcount(cloud_RoleInstance) default=0 on timestamp from _startTime to _endTime step bins
755
+
| render columnchart
756
+
```
743
757
744
758
### View costs
745
759
@@ -757,7 +771,7 @@ To view the current costs:
757
771
758
772
## Fine-tune your app
759
773
760
-
The Flex Consumption plan provides several settings that you can tune to refine the performance of your app. Actual performance and costs can vary based on your app-specific workload patterns and configuration. For example, higher [memory instance sizes](./flex-consumption-plan.md#instance-memory) can improve performance for memory-intensive operations but at a higher cost per active period.
774
+
The Flex Consumption plan provides several settings that you can tune to refine the performance of your app. Actual performance and costs can vary based on your app-specific workload patterns and configuration. For example, higher [memory instance sizes](./flex-consumption-plan.md#instance-sizes) can improve performance for memory-intensive operations but at a higher cost per active period.
761
775
762
776
Here are some adjustments you can make to fine-tune performance versus cost:
Copy file name to clipboardExpand all lines: articles/azure-functions/flex-consumption-plan.md
+16-6Lines changed: 16 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ The Flex Consumption plan builds on the strengths of the serverless Consumption
26
26
+**Virtual network support**: [Virtual network integration](#virtual-network-integration) enables your serverless app to run in a virtual network.
27
27
+**Per-Function Scaling**: Each function in your app [scales independently based on its workload](#per-function-scaling), potentially resulting in more efficient resource allocation.
28
28
+**Improved Concurrency Handling**: Better handling of concurrent executions with configurable concurrency settings per function.
29
-
+**Flexible Memory Configuration**: Flex Consumption offers multiple [instance memory](#instance-memory) size options, allowing you to optimize for your specific workload requirements.
29
+
+**Flexible Memory Configuration**: Flex Consumption offers multiple [instance sizes](#instance-sizes) size options, allowing you to optimize for your specific workload requirements.
30
30
31
31
This table helps you directly compare the features of Flex Consumption with the Consumption hosting plan:
32
32
@@ -45,11 +45,21 @@ For a complete comparison of the Flex Consumption plan against the Consumption p
45
45
46
46
Flex Consumption expands on the traditional benefits of Consumption plan by adding support for [virtual network integration](./functions-networking-options.md#virtual-network-integration). When your apps run in a Flex Consumption plan, they can connect to other Azure services secured inside a virtual network. All while still allowing you to take advantage of serverless billing and scale, together with the scale and throughput benefits of the Flex Consumption plan. For more information, see [Enable virtual network integration](./flex-consumption-how-to.md#enable-virtual-network-integration).
47
47
48
-
## Instance memory
48
+
## Instance sizes
49
49
50
50
When you create your function app in a Flex Consumption plan, you can select the memory size of the instances on which your app runs. See [Billing](#billing) to learn how instance memory sizes affect the costs of your function app.
51
51
52
-
Currently, Flex Consumption offers these instance memory size options: 512 MB, 2,048 MB, and 4,096 MB.
52
+
Currently, Flex Consumption offers these instance size options:
53
+
54
+
| Instance Memory (MB) | CPU Cores |
55
+
|-----------------|-----------|
56
+
| 512 | 0.25 |
57
+
| 2048 | 1 |
58
+
| 4096 | 2 |
59
+
60
+
61
+
> [!NOTE]
62
+
> The CPU core values shown are typical allocations for instances with the specified memory size. However, initial instances might be granted slightly different core allocations to improve performance.
53
63
54
64
When deciding on which instance memory size to use with your apps, here are some things to consider:
55
65
@@ -102,7 +112,7 @@ Deployments in the Flex Consumption plan follow a single path, and there's no lo
102
112
103
113
The minimum billable execution period for both execution modes is 1,000 ms. Past that, the billable activity period is rounded up to the nearest 100 ms. You can find details on the Flex Consumption plan billing meters in the [Monitoring reference](monitor-functions-reference.md?tab=flex-consumption-plan#metrics).
104
114
105
-
For details about how costs are calculated when you run in a Flex Consumption plan, including examples, see [Consumption-based costs](functions-consumption-costs.md?tabs=flex-consumtion-plan#consumption-based-costs).
115
+
For details about how costs are calculated when you run in a Flex Consumption plan, including examples, see [Consumption-based costs](functions-consumption-costs.md?tabs=flex-consumption-plan#consumption-based-costs) and [Viewing cost-related data](functions-consumption-costs.md?tabs=flex-consumption-plan#viewing-and-estimating-costs-from-metrics).
106
116
107
117
## Supported language stack versions
108
118
@@ -122,9 +132,9 @@ This table shows the language stack versions that are currently supported for Fl
122
132
123
133
## Regional subscription memory quotas
124
134
125
-
The Flex Consumption plan has a memory-based quota that limits how much compute all your Flex Consumption apps can use at the same time in a specific region and subscription. Imagine you have a bucket of memory measured in GB for your entire subscription in a region. All your Flex Consumption apps in that region share this bucket. If your Flex Consumption apps try to use more than the quota allows, some executions may be delayed or throttled from scaling, but you won’t be blocked from creating or deploying apps.
135
+
The Flex Consumption plan has a memory-based quota that limits how much compute all your Flex Consumption apps can use at the same time in a specific region and subscription. Imagine you have a bucket of memory measured in GB or CPU cores for your entire subscription in a region. All your Flex Consumption apps in that region share this bucket. If your Flex Consumption apps try to use more than the quota allows, some executions may be delayed or throttled from scaling, but you won’t be blocked from creating or deploying apps.
126
136
127
-
Currently, each region in a given subscription has a default memory limit quota of `512,000 MB` for all instances of apps running on Flex Consumption plans. This quota means that, in a given subscription and region, you could have any combination of instance memory sizes and counts, as long as they stay under the quota limit. For example, each the following examples would mean the quota is reached and the apps would stop scaling:
137
+
Currently, each region in a given subscription has a default quota of the lesser of either `512,000 MB`or 250 cores for all instances of apps running on Flex Consumption plans. These quotas mean that, in a given subscription and region, you could have any combination of instance memory sizes and counts, as long as they stay under the quota limits. For example, in each of these scenarios the quota is reached, and apps in the region stops scaling:
128
138
129
139
+ You have one 512-MB app scaled to 250 instances and a second 512-MB app scaled to 750 instances.
130
140
+ You have one 512-MB app scaled to 1,000 instances.
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-concurrency.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ For trigger types that support concurrency configuration, the concurrency settin
50
50
51
51
_Applies only to the Flex Consumption plan_
52
52
53
-
HTTP trigger concurrency is a special type of fixed per-instance concurrency. In HTTP trigger concurrency, the default concurrency also depends on the [instance memory size](./flex-consumption-plan.md#instance-memory).
53
+
HTTP trigger concurrency is a special type of fixed per-instance concurrency. In HTTP trigger concurrency, the default concurrency also depends on the [instance size](./flex-consumption-plan.md#instance-sizes).
54
54
55
55
The Flex Consumption plan scales all HTTP trigger functions together as a group. For more information, see [Per-function scaling](event-driven-scaling.md#per-function-scaling).
0 commit comments