Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6068

Implement forceConnectionOptions option

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.35.0
    • None
    • Connectivity, Preferences
    • None
    • 3
    • Needed
    • Hide

      Compass support a config option to force connection options to have a specific value. These options can then not be overridden through the connection form or by specifying them in the connection string.

      These options can be specified on the command line, or in the global config file.

      Example global config file section (YAML):

      forceConnectionOptions:
       - readPreference: secondary
       - readPreferenceTags: nodeType:ANALYTICS
       - readPreferenceTags: nodeType:READ_ONLY
      

      Example global config file section (JSON):

       "forceConnectionOptions": [
         ["readPreference", "secondary"],
         ["readPreferenceTags", "nodeType:ANALYTICS"],
         ["readPreferenceTags", "nodeType:READ_ONLY"]
       ]
      

      Example command line specification:

      --forceConnectionOptions.readPreference=secondary --forceConnectionOptions.readPreferenceTags=nodeType:ANALYTICS --forceConnectionOptions.readPreferenceTags=nodeType:READ_ONLY
      

      (picking this example to show how to specify an option that can be specified more than once)

      Show
      Compass support a config option to force connection options to have a specific value. These options can then not be overridden through the connection form or by specifying them in the connection string. These options can be specified on the command line, or in the global config file. Example global config file section (YAML): forceConnectionOptions: - readPreference: secondary - readPreferenceTags: nodeType:ANALYTICS - readPreferenceTags: nodeType:READ_ONLY Example global config file section (JSON): "forceConnectionOptions": [ ["readPreference", "secondary"], ["readPreferenceTags", "nodeType:ANALYTICS"], ["readPreferenceTags", "nodeType:READ_ONLY"] ] Example command line specification: --forceConnectionOptions.readPreference=secondary --forceConnectionOptions.readPreferenceTags=nodeType:ANALYTICS --forceConnectionOptions.readPreferenceTags=nodeType:READ_ONLY (picking this example to show how to specify an option that can be specified more than once)
    • Iteration Octopus

    Description

      This includes displaying a notice in the Compass connection UI if the option is active.

      Attachments

        Activity

          People

            anna.henningsen@mongodb.com Anna Henningsen
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: