Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-57310

record creation date of mongos

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.2.0
    • None
    • None
    • Fully Compatible
    • Sharding 2021-09-20, Sharding 2021-10-04, Sharding 2021-10-18, Sharding 2021-11-01, Sharding 2021-11-15

    Description

      It'll be nice if we can store the creation date of each MongoS in the mongos collections.

      mongos> db.getSiblingDB("config").mongos.find().pretty()
      {
      	"_id" : "hostname.local:27017",
      	"advisoryHostFQDNs" : [
      		"hostname.local"
      	],
      	"mongoVersion" : "4.4.5",
              "created": ISODate("2021-05-31T11:42:24.629Z"),
      	"ping" : ISODate("2021-05-31T11:42:24.629Z"),
      	"up" : NumberLong(430953),
      	"waiting" : true
      }
      

      This could just be the time when the mongos document is created.

      Sometimes, this kind of info help Devops or DBAs investigate environmental issues etc, with the CSRS and shards, we can get the creation date of the replica set from the replica set ID, but we don't have a way to tell MongoS creation date reliably.

      Attachments

        Activity

          People

            israel.hsu@mongodb.com Israel Hsu
            jennifer.huang@mongodb.com Jennifer Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: