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

Implement forceConnectionOptions option

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.35.0
    • Affects Version/s: None
    • Component/s: Connectivity, Preferences
    • Labels:
      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

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

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

              Created:
              Updated:
              Resolved: