Skip to content

Commit 6778986

Browse files
authored
[Event Hubs Trigger] Add new scaling parameter
The focus of these changes is to add the new scaling parameter, `targetUnprocessedEventThreshold` to the documentation for the `host.json` configuration.
1 parent db8f349 commit 6778986

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

includes/functions-bindings-event-hubs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ The [host.json](../articles/azure-functions/functions-host-json.md#eventhub) fil
122122
"extensions": {
123123
"eventHubs": {
124124
"maxEventBatchSize" : 10,
125+
"targetUnprocessedEventThreshold" : 75,
125126
"batchCheckpointFrequency" : 1,
126127
"prefetchCount" : 300,
127128
"transportType" : "amqpWebSockets",
@@ -146,6 +147,7 @@ The [host.json](../articles/azure-functions/functions-host-json.md#eventhub) fil
146147
|Property |Default | Description |
147148
|---------|---------|---------|
148149
| maxEventBatchSize| 10| The maximum number of events that will be included in a batch for a single invocation. Must be at least 1.|
150+
| targetUnprocessedEventThreshold | | The desired number of unprocessed events per Function instance. This is used in target-based scaling to override the default scaling threshold inferred from the `maxEventBatchSize` option. If set, the total unprocessed event count will be divided by this value to determine the number of Function instances needed, which is rounded up to a count that creates a balanced partition distribution.|
149151
| batchCheckpointFrequency| 1| The number of batches to process before creating a checkpoint for the event hub.|
150152
| prefetchCount| 300| The number of events that will be eagerly requested from Event Hubs and held in a local cache to allow reads to avoid waiting on a network operation|
151153
| transportType| amqpTcp | The protocol and transport that is used for communicating with Event Hubs. Available options: `amqpTcp`, `amqpWebSockets`|

0 commit comments

Comments
 (0)