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

Get mongod version and git version information without spinning up a mongod process

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 7.0.13, 7.3.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v8.0, v7.3, v7.0
    • 4

      During the Atlas start phase of MongoDB setup, DSI establishes an SSH connection to a workload client and executes mongod --version (code) to obtain the version and gitVersion of mongod. These version numbers are then used to create a custom Atlas build. This process has two implications:

      • The provisioning of Atlas clusters is dependent on the provisioning of workload clients. This interdependence complicated the solution for DEVPROD-3880, which required the provisioning of a temporary workload client to execute mongod --version. After the Atlas cluster was provisioned, the temporary workload client was torn down and a new one was set up in the designated Availability Zone.
      • The MongoDB binary used for the workload client must be identical to the one used for the server (i.e., the Atlas cluster).

      I propose incorporating a mongod metadata information file into the supplementary info package. This would allow DSI to extract version and gitVersion information directly from the file, eliminating the need for a temporary workload client.

      Furthermore, if possible, I recommend including the mongod binary OS and CPU architecture details in this file. This would obviate the need to extract such information from tarball names.

            Assignee:
            simon.eismann@mongodb.com Simon Eismann
            Reporter:
            lungang.fang@mongodb.com Lungang Fang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: