Question: Why does SDK hit Cosmos DB every five minutes?
See original GitHub issueQuestion 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
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:
- Created 3 years ago
- Reactions:2
- Comments:7 (4 by maintainers)
Top GitHub Comments
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.
Closing due to in-activity, pease feel free to re-open.