Relative Content

Tag Archive for mongodb

MongoDB: Efficiently implement TTL index

I currently have the following data model in my mongodb which I have set up accordingly to the problem explained here: https://www.mongodb.com/docs/atlas/schema-suggestions/avoid-unbounded-arrays/:

How to know if the secondary node is ok in MongoDb

I have a mongo replica set of 3 nodes. We use the primary for both write and read. Its a legacy system so it doesn’t see much use. Mongo version used is 2.6.11 . When I run isMaster on one of the secondary nodes, this is the response I get.

How to access URL from Docker

I have developed an API using Docker on Windows. While running inside Visual Studio, I can access the URL without any issues. However, after stopping Visual Studio and deploying the application, the URL becomes unreachable when accessed through Docker. I switched Docker to Windows containers before starting it and am running Docker on Windows 11. […]

Mongodb OPS Manager – command metric

What types of activities are shown under the “command” metric in OPS Manager Deployment metrics ? I see inserts and updates also showing up as “command” in database logs. If inserts show as command in db logs (and presumably in OPS Manager “command” metric), what are the inserts that show separately in the Metrics ?