Cosmos DB Trigger: Consumption plan not creating instances
See original GitHub issue- Function App version: 1.0
- Function App name: consumer-egress-func
- Function name(s) (as appropriate): ChangeFeedFunc
- Region: West Europe
Cosmos DB change feed doesn’t get triggered the first time, until I manually visit the Function App -> Change Feed Function -> function.json
-> Logs. This change feed is being observed on a partitioned collection with 25k RUs. Function is hosted on consumption plan with a single lease (leases collection: 400 RUs). Once it gets triggered it works fine afterwards but the first time I always have to navigate to the Logs as mentioned above.
The behavior is not tied to a specific Collection or Cosmos DB account but always reproducible by deploying this ARM template and running these load tests. The trigger is configured in code here.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:24 (14 by maintainers)
Top Results From Across the Web
Troubleshoot issues with the Azure Functions trigger for ...
This article discusses common issues, workarounds, and diagnostic steps when you're using the Azure Functions trigger for Azure Cosmos DB.
Read more >Create a function triggered by Azure Cosmos DB
Hosting plan that defines how resources are allocated to your function app. In the default Consumption plan, resources are added dynamically as ...
Read more >Cosmos db change feed trigger not firing after function ...
If I view the function app in the portal (even just the Overview page), the function "wakes up" and processes all the Cosmos...
Read more >Azure Cosmos DB + Functions Cookbook — live migration
When a Function instance is created using the Cosmos DB Trigger, it will claim all the Leases, and start processing the changes in...
Read more >Azure Function seems to be in idle
Hi, We are running consumption based plans on Linux and we have some issues with service bus messages not being picked up properly....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ealsur I can confirm that using an HTTP Trigger correctly forces a wakeup and consequently triggers a changefeed.
@ealsur The existence of leases collection doesn’t matter. Tried both reusing it and re-creating a new one every time, but the end result is still that I have to navigate to the portal in order for Change Feed to “kick in”.