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

Remove numShardedCollections metrics from serverStatus

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Minor Change
    • v8.0

      Due to the introduction of tracked unsharded collections (PM-3364) the numShardedCollections metric reported in server status is now wrong because it reports both sharded and tracked unsharded collections.

      In order to report only sharded collection, we would need to perform a read on config.collections filtering out tracked unsharded collection. Unfortunately, this operation is to slow to be executed as part of serverStatus command execution. On the other hand maintaining a cached count of the sharded collection would require a significant effort.

      Since the number of sharded collection can be easily retrieved by means of user facing server API we decided to remove this metric from the serverStatus command.

      Additionally, this metric was introduced in SERVER-68576 because at that time we didn't have a easy way of retrieving collection statistics in Atlas clusters. CLOUDP-237418 will provide a solution to this that rely on collStats rather than the output of server status.

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: