question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:24 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
syedhassaanahmedcommented, Jun 8, 2018

@ealsur I can confirm that using an HTTP Trigger correctly forces a wakeup and consequently triggers a changefeed.

1reaction
syedhassaanahmedcommented, Jun 6, 2018

@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”.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found