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.

Question: Why does SDK hit Cosmos DB every five minutes?

See original GitHub issue

Question I see an HTTP GET request to my Cosmos DB account every five minutes exactly to the second. It originates from my Azure Web App which uses the Cosmos SDK. I can’t find any documentation on any heartbeats in the SDK or what would be continually hitting the DB. I create a singleton Cosmos client for my Web App. The Web App is a custom Linux container. Connection mode is the default of Direct which I believe uses TCP so I wouldn’t expect any HTTP requests to begin with.

SDK Version <PackageReference Include="Microsoft.Azure.Cosmos" Version="3.9.1" />

The Cosmos Monitor documentation here states:

Metrics are collected every five minutes and are kept for seven days.

However, I don’t think this is related, because:

A) I wouldn’t expect to see these metric requests in Application Insights itself, and more importantly B) I wouldn’t expect to see these metric requests originating from my Web App as a dependency request

Screenshot from Application Insights image

So my question is: Can anyone explain or confirm what this request might be related to? It is not my code. Is there some configuration/option for the client SDK this related to. I just want to understand what these requests are about.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
krispennercommented, Jun 16, 2020

Thank you for your explanation. Sounds reasonable 😃 I’ll go ahead and close this. Might be worth documenting this so others don’t also get confused, unless it is already and I just can’t find it.

0reactions
msftbot[bot]commented, Dec 15, 2021

Closing due to in-activity, pease feel free to re-open.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Cosmos DB .NET SDK - background request every 5 ...
Now I observed in Application Insights, that there seems to be some call to the database every 5 minutes - without any interaction...
Read more >
Troubleshoot Azure Cosmos DB request rate too large ...
It occurs when the request units consumed by operations on data exceed the provisioned number of RU/s. If you're using manual throughput, this ......
Read more >
It can take 5 minutes to receive a 429 (or other result) #517
I'm using Cosmos DB Table API with the old table storage sdk because #344 ... It can take 5 minutes to receive a...
Read more >
Lesson learned after 2 years working with Cosmos DB
First, there is a very good integration and out of the box support between Cosmos DB and all the other data related services...
Read more >
Understanding Azure Cosmos DB's APIs - YouTube
Learn more about Azure Cosmos DB : ... What is a Request Unit? ... Azure Cosmos DB Operations(Rest API ) via Postman in...
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