Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-3464

Investigate changes in SERVER-84776: Add `service: router` or Similar Flag to ServerStatus Output When Run Against Embedded Router

    • Type: Icon: Investigation Investigation
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Tools and Replicator

      Original Downstream Change Summary

      Added a new field `service` for serverStatus.

      With PM-635, shards will be able to act as routers, and it is not enough to inform that the process is 'mongod' by serverStatus.process. In order to add extra information on the role that the mongod is acting at that moment, we have added a new field called `service`.

      Now serverStatus returns

      { process: mongod, service: router|shard, ...}

      running it directly to the mongod, or

      { process: mongos, service: router, ...}

      running it through the mongos.

      Description of Linked Ticket

      As of build 7.3.0-alpha0-81-g99853e7 (which corresponds to git hash 99853e7a9c71d793b5b3c5028e322bf0215d2697), running db.serverStatus() against an embedded router returns process: 'mongod'. While this is technically correct, it'd be helpful to have a flag somewhat along the lines of service: 'router' or something similar to signify that this command was run against a router and not against the mongod directly.

            Assignee:
            Unassigned Unassigned
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: